Skip to content

Commit 5a5b564

Browse files
committed
Fix some CSS issues in Firefox
1 parent 78a2b53 commit 5a5b564

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

main.css

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ h1, h2, h3 {
9595
border: 1px solid #fff;
9696
white-space: nowrap;
9797
touch-action: none;
98-
z-index: 6!important;
98+
z-index: 5!important;
9999
}
100100

101101
#detailsWindow > :not(:first-child) {
@@ -107,7 +107,7 @@ h1, h2, h3 {
107107
border-bottom: 1px solid #fff;
108108
font-size: 28px;
109109
font-variant: small-caps;
110-
z-index: 7!important;
110+
z-index: 6!important;
111111
align-items: center;
112112
justify-content: center;
113113
}
@@ -124,6 +124,7 @@ h1, h2, h3 {
124124
margin: 0 4px 0 -32px;
125125
height: 32px;
126126
width: 32px;
127+
z-index: 7!important;
127128
}
128129

129130
#detailsWindowContents {
@@ -224,6 +225,10 @@ h1, h2, h3 {
224225
float: left;
225226
}
226227

228+
#floatLeft, #floatLeft .select2-container:not(.select2-container--open) {
229+
width: 60px!important;
230+
}
231+
227232
#floatLeft .fi, .fi-dropdown {
228233
background-size: cover;
229234
border: 1px solid #fff;
@@ -235,14 +240,6 @@ h1, h2, h3 {
235240
float: right;
236241
}
237242

238-
#floatLeft:has(.select2-container:not(.select2-container--open)), #floatLeft .select2-container:not(.select2-container--open) {
239-
width: 60px!important;
240-
}
241-
242-
#floatLeft:has(.select2-container--open), #floatLeft .select2-container--open, #floatLeft .select2-dropdown {
243-
width: 160px!important;
244-
}
245-
246243
.visible, .visible * {
247244
visibility: visible!important;
248245
}

main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5412,6 +5412,14 @@ $(document).ready(function() {
54125412
const position = container.offset().top;
54135413
const availableHeight = $(window).height() - position - container.outerHeight();
54145414
$(".select2-results__options").css("max-height", availableHeight - 80);
5415+
if (e.target.id == "localeSelector") {
5416+
$("#floatLeft, #floatLeft .select2-container").width(160);
5417+
}
5418+
});
5419+
$(window).on("select2:close", e => {
5420+
if (e.target.id == "localeSelector") {
5421+
$("#floatLeft, #floatLeft .select2-container").width(60);
5422+
}
54155423
});
54165424

54175425
rebuildTextures();

0 commit comments

Comments
 (0)