Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/template/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (f *funcMap) Map() template.FuncMap {
"theme_color": model.ThemeColor,
"icon": func(iconName string) template.HTML {
return template.HTML(fmt.Sprintf(
`<svg class="icon" aria-hidden="true"><use href="%s#icon-%s"/></svg>`,
`<svg aria-hidden="true"><use href="%s#icon-%s"/></svg>`,
route.Path(f.router, "appIcon", "filename", "sprite.svg"),
iconName,
))
Expand Down
10 changes: 6 additions & 4 deletions internal/ui/static/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ a:hover {
white-space: nowrap;
}

#header-menu .icon,
.page-header ul a .icon {
#header-menu a>svg,
.page-header ul a>svg {
margin-bottom: 2px;
}

Expand Down Expand Up @@ -929,14 +929,16 @@ article.category-has-unread {
}

/* Icons */
.icon,
a>svg,
button>svg,
.icon-label {
vertical-align: text-bottom;
display: inline-block;
margin-right: 2px;
}

.icon {
a>svg,
button>svg {
width: 16px;
height: 16px;
}
Expand Down
Loading