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 {
|
HStack {
|
||||||
EmojiPreview(hoarder: hoarder, emoji: emoji)
|
EmojiPreview(hoarder: hoarder, emoji: emoji)
|
||||||
.frame(width: 100, height: 100)
|
.frame(width: 100, height: 100)
|
||||||
|
.transition(.scale)
|
||||||
|
|
||||||
let alignment: HorizontalAlignment = emoji.name.count < 7 ? .center : .leading
|
VStack(alignment: .leading, spacing: 5) {
|
||||||
VStack(alignment: alignment, spacing: 5) {
|
|
||||||
Text(emoji.name)
|
Text(emoji.name)
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.bold(isLocal)
|
.bold(isLocal)
|
||||||
.foregroundColor(isLocal ? .green : .primary)
|
.foregroundColor(isLocal ? .green : .primary)
|
||||||
.lineLimit(nil)
|
.lineLimit(nil)
|
||||||
.layoutPriority(1)
|
|
||||||
.multilineTextAlignment(.leading)
|
.multilineTextAlignment(.leading)
|
||||||
.fixedSize()
|
|
||||||
HStack(spacing: 5) {
|
HStack(spacing: 5) {
|
||||||
Button() {
|
Button {
|
||||||
showTooltip.toggle()
|
showTooltip.toggle()
|
||||||
} label: {
|
} label: {
|
||||||
Image("thing")
|
Image("slack.logo")
|
||||||
.resizable().scaledToFit()
|
.resizable().scaledToFit()
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
.foregroundStyle(.gray)
|
.foregroundStyle(.gray)
|
||||||
}
|
}
|
||||||
.buttonStyle(.borderless)
|
.buttonStyle(.borderless)
|
||||||
.alert("From Slack", isPresented: $showTooltip) {
|
.alert("From Slack", isPresented: $showTooltip) {
|
||||||
Button("OK") {}
|
Button("Done") {}
|
||||||
}
|
}
|
||||||
if isLocal {
|
if isLocal {
|
||||||
Image(systemName: "arrow.down.circle.fill")
|
Image(systemName: "arrow.down.circle.fill")
|
||||||
|
|||||||