Skip to content

Commit 2a5c3ad

Browse files
redstratetronical
authored andcommitted
Slint: Properly size Slint logo link in About dialog for Firefox
For some reason the link wasn't sized correctly, it's smaller than the logo and looks buggy. Setting this as an inline-block fixes this. I tested this on Firefox and Chromium, it doesn't appear to be an issue on Chrome but this fix doesn't regress there either.
1 parent a9f9e43 commit 2a5c3ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tools/slintpad/src/dialogs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export function about_dialog() {
147147
<center>
148148
<h1>Welcome to SlintPad</h1>
149149
150-
<a href="https://slint.dev/" target="_blank"><img src="https://slint.dev/logo/slint-logo-simple-light.svg"></a>
150+
<a href="https://slint.dev/" target="_blank" class="slint-logo-link"><img src="https://slint.dev/logo/slint-logo-simple-light.svg" width="141" height="42"></a>
151151
</center>
152152
153153
<p><a href="https://slint.dev/" target="_blank">Slint</a> is a toolkit to efficiently develop fluid graphical user interfaces for

tools/slintpad/styles/content.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,7 @@
202202
content: "✓";
203203
padding-left: 5px;
204204
}
205+
206+
.dialog.about_dialog .slint-logo-link {
207+
display: inline-block;
208+
}

0 commit comments

Comments
 (0)