fix emojirow
No files matched your search
@@ -1,56 +0,0 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "SlackGlyph Light 3.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"filename" : "SlackGlyph.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "SlackGlyph Light 1.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"filename" : "SlackGlyph 1.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "SlackGlyph Light.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"filename" : "SlackGlyph 2.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
@@ -21,29 +21,27 @@ struct EmojiRow: View {
|
||||
HStack {
|
||||
EmojiPreview(hoarder: hoarder, emoji: emoji)
|
||||
.frame(width: 100, height: 100)
|
||||
.transition(.scale)
|
||||
|
||||
let alignment: HorizontalAlignment = emoji.name.count < 7 ? .center : .leading
|
||||
VStack(alignment: alignment, spacing: 5) {
|
||||
VStack(alignment: .leading, spacing: 5) {
|
||||
Text(emoji.name)
|
||||
.font(.caption)
|
||||
.bold(isLocal)
|
||||
.foregroundColor(isLocal ? .green : .primary)
|
||||
.lineLimit(nil)
|
||||
.layoutPriority(1)
|
||||
.multilineTextAlignment(.leading)
|
||||
.fixedSize()
|
||||
HStack(spacing: 5) {
|
||||
Button() {
|
||||
Button {
|
||||
showTooltip.toggle()
|
||||
} label: {
|
||||
Image("thing")
|
||||
Image("slack.logo")
|
||||
.resizable().scaledToFit()
|
||||
.frame(width: 20, height: 20)
|
||||
.foregroundStyle(.gray)
|
||||
}
|
||||
.buttonStyle(.borderless)
|
||||
.alert("From Slack", isPresented: $showTooltip) {
|
||||
Button("OK") {}
|
||||
Button("Done") {}
|
||||
}
|
||||
if isLocal {
|
||||
Image(systemName: "arrow.down.circle.fill")
|
||||
|
||||