settings: Move save check width to stylesheet and scale with font size.

This commit is contained in:
evykassirer 2025-03-11 10:55:40 -07:00 committed by Tim Abbott
parent 82ee8ca7cc
commit de6f15a565
2 changed files with 9 additions and 4 deletions

View File

@ -20,7 +20,7 @@ export type RequestOpts = {
export function display_checkmark($elem: JQuery): void {
const $check_mark = $("<img>");
$check_mark.attr("src", checkbox_image);
$check_mark.css("width", "13px");
$check_mark.addClass("settings-save-checkmark");
$elem.prepend($check_mark);
}

View File

@ -590,7 +590,8 @@ input[type="checkbox"] {
}
.alert-notification {
display: inline-block;
display: inline-flex;
align-items: center;
vertical-align: top;
height: auto !important;
width: auto !important;
@ -619,8 +620,8 @@ input[type="checkbox"] {
}
.loading_indicator_spinner {
width: 13px;
height: 20px;
width: 0.9283em; /* 13px at 14px/em */
height: 1.4286em; /* 20px at 14px/em */
margin: 0;
}
@ -640,6 +641,10 @@ input[type="checkbox"] {
vertical-align: middle;
margin-top: -2px;
}
.settings-save-checkmark {
width: 0.9285em; /* 13px at 14px/em */
}
}
#profile-field-settings #admin-add-profile-field-status {