Skip to content

Commit bc81d12

Browse files
authored
Disable Fomantic's CSS tooltips (#16974)
CSS-only tooltips suffer various issues with positioning and there was only one single instance of them in the templates. Replace that instance with a regular popup and exclude these `data-tooltip` styles from the Fomantic build.
1 parent 63d7cbc commit bc81d12

File tree

4 files changed

+2
-447
lines changed

4 files changed

+2
-447
lines changed

templates/repo/settings/options.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
{{$address := MirrorRemoteAddress .}}
171171
<td>{{$address.Address}}</td>
172172
<td>{{$.i18n.Tr "repo.settings.mirror_settings.direction.push"}}</td>
173-
<td>{{if .LastUpdateUnix}}{{.LastUpdateUnix.AsTime}}{{else}}{{$.i18n.Tr "never"}}{{end}} {{if .LastError}}<div class="ui red label" data-tooltip="{{.LastError}}">{{$.i18n.Tr "error"}}</div>{{end}}</td>
173+
<td>{{if .LastUpdateUnix}}{{.LastUpdateUnix.AsTime}}{{else}}{{$.i18n.Tr "never"}}{{end}} {{if .LastError}}<div class="ui red label poping up" data-content="{{.LastError}}">{{$.i18n.Tr "error"}}</div>{{end}}</td>
174174
<td class="right aligned">
175175
<form method="post" style="display: inline-block">
176176
{{$.CsrfTokenHtml}}

web_src/fomantic/_site/globals/site.variables

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
@bold: 500;
66
@useCustomScrollbars: false;
77
@disabledOpacity: var(--opacity-disabled);
8+
@variationPopupTooltip: false;

0 commit comments

Comments
 (0)