diff --git a/service/internal/config/emoji.go b/service/internal/config/emoji.go index 91cc678..86d7edf 100644 --- a/service/internal/config/emoji.go +++ b/service/internal/config/emoji.go @@ -1,5 +1,10 @@ package config +import ( + "fmt" + "strings" +) + var emojis = map[string]string{ "poop": "💩", "smile": "😀", @@ -27,5 +32,15 @@ func lookupHTMLIcon(keyToLookup string, defaultIcon string) string { return emoji } + keyToLookup = expandShortPathToFullPath(keyToLookup) + + return keyToLookup +} + +func expandShortPathToFullPath(keyToLookup string) string { + if strings.Contains(keyToLookup, "/") && !strings.HasPrefix(keyToLookup, "<") { + return fmt.Sprintf("", keyToLookup) + } + return keyToLookup } diff --git a/webui.dev/style.css b/webui.dev/style.css index 35e5098..5ca657e 100644 --- a/webui.dev/style.css +++ b/webui.dev/style.css @@ -219,6 +219,10 @@ span.icon { font-size: 3em; } +span.icon img { + width: 1em; +} + .action-header { display: flex; align-items: center;