Tweak some system buttons to look better in the new menu bar

The reveal widget leaves behind an unnecessary span, which breaks the CSS used to target the button.
fix-syncer
Jeremy Ruston 2020-02-28 14:34:06 +00:00
rodzic ad2d4503e5
commit b179a60111
2 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -1,9 +1,9 @@
title: $:/core/ui/TopBar/menu
tags: $:/tags/TopRightBar
<$reveal state="$:/state/sidebar" type="nomatch" text="no">
<$list filter="[[$:/state/sidebar]get[text]!match[no]]" variable="ignore">
<$button set="$:/state/sidebar" setTo="no" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-right}}</$button>
</$reveal>
<$reveal state="$:/state/sidebar" type="match" text="no">
</$list>
<$list filter="[[$:/state/sidebar]get[text]match[no]]" variable="ignore">
<$button set="$:/state/sidebar" setTo="yes" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-left}}</$button>
</$reveal>
</$list>

Wyświetl plik

@ -6,7 +6,7 @@ description: {{$:/language/Buttons/Help/Hint}}
\whitespace trim
\define help-inner()
\whitespace trim
<$reveal type="match" state="$:/config/ShowHelp" text="yes">
<$list filter="[[$:/config/ShowHelp]get[text]match[yes]]" variable="ignore">
<$button set="$:/config/ShowHelp" setTo="no" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class="""$(tv-config-toolbar-class)$ tc-selected""">
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/core/images/help}}
@ -15,8 +15,8 @@ description: {{$:/language/Buttons/Help/Hint}}
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Help/Caption}}/></span>
</$list>
</$button>
</$reveal>
<$reveal type="nomatch" state="$:/config/ShowHelp" text="yes">
</$list>
<$list filter="[[$:/config/ShowHelp]get[text]!match[yes]]" variable="ignore">
<$button set="$:/config/ShowHelp" setTo="yes" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/core/images/help}}
@ -25,6 +25,6 @@ description: {{$:/language/Buttons/Help/Hint}}
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Help/Caption}}/></span>
</$list>
</$button>
</$reveal>
</$list>
\end
<<help-inner>>