fix emojirow

This commit is contained in:
neon443 committed 2026-03-16 21:13:26 +00:00
1 parent d3a134575c
commit 21a67416a1
10 files changed
+5 -63

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
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

+5 -7
View File
@@ -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")
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.