Skip to content

Commit a42a797

Browse files
authored
Further fix icons not displaying properly. (#8688)
1 parent e259f41 commit a42a797

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

themes/tiddlywiki/vanilla/base.tid

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,8 @@ html body.tc-body .tc-btn-rounded:hover svg {
720720
}
721721

722722
button svg.tc-image-button, button .tc-image-button img {
723-
height: auto;
724-
width: 1em;
723+
max-height: 1em;
724+
max-width: 1em;
725725
}
726726

727727
.tc-unfold-banner {
@@ -2623,6 +2623,9 @@ a.tc-tiddlylink.tc-plugin-info:hover > .tc-plugin-info-chunk .tc-plugin-info-sta
26232623
flex-grow: 0;
26242624
flex-shrink: 0;
26252625
line-height: 1;
2626+
height: 2em;
2627+
width: 2em;
2628+
display: grid;
26262629
}
26272630

26282631
.tc-plugin-info-chunk.tc-plugin-info-description {
@@ -2689,8 +2692,9 @@ a.tc-tiddlylink.tc-plugin-info:hover > .tc-plugin-info-chunk .tc-plugin-info-sta
26892692
}
26902693

26912694
.tc-plugin-info-chunk.tc-plugin-info-icon img, .tc-plugin-info-chunk.tc-plugin-info-icon svg {
2692-
width: 2em;
2693-
height: auto;
2695+
max-width: 2em;
2696+
max-height: 2em;
2697+
margin: auto;
26942698
}
26952699

26962700
.tc-plugin-info-dropdown {
@@ -2857,12 +2861,13 @@ a.tc-tiddlylink.tc-plugin-info:hover > .tc-plugin-info-chunk .tc-plugin-info-sta
28572861

28582862
.tc-chooser-item svg,
28592863
.tc-chooser-item img{
2860-
width: 1em;
2861-
height: 1em;
2864+
max-width: 1em;
2865+
max-height: 1em;
28622866
vertical-align: middle;
28632867
}
28642868

28652869
.tc-language-chooser .tc-image-button img {
2870+
max-width: 2em;
28662871
width: auto;
28672872
vertical-align: -0.15em;
28682873
}

0 commit comments

Comments
 (0)