Skip to content

Commit a93cd13

Browse files
committed
Fix visual glitch where the file picker container overlapped with the aladin-control-component.
1 parent b3dbb6b commit a93cd13

1 file changed

Lines changed: 33 additions & 25 deletions

File tree

web/styles.css

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
box-sizing: border-box;
33
}
44

5+
:root {
6+
--layout-top-offset: calc(env(safe-area-inset-top, 0px) + 22rem);
7+
}
8+
59
html,
610
body {
711
height: 100%;
@@ -24,53 +28,56 @@ body {
2428

2529
.hud {
2630
position: fixed;
27-
top: 1.25rem;
31+
top: var(--layout-top-offset);
2832
left: 1.25rem;
29-
width: min(420px, calc(100vw - 2.5rem));
33+
width: min(380px, calc(100vw - 2.5rem));
34+
max-height: calc(100vh - 2.5rem);
3035
background: rgba(6, 11, 27, 0.78);
3136
border: 1px solid rgba(148, 163, 184, 0.18);
3237
border-radius: 1rem;
33-
padding: 1.25rem;
38+
padding: 0.85rem;
3439
display: flex;
3540
flex-direction: column;
36-
gap: 0.9rem;
41+
gap: 0.6rem;
3742
box-shadow: 0 20px 40px rgba(4, 10, 24, 0.35);
3843
pointer-events: auto;
3944
backdrop-filter: blur(14px);
40-
z-index: 10;
45+
z-index: 5;
46+
overflow-y: auto;
4147
}
4248

4349
.title {
4450
margin: 0;
45-
font-size: 0.95rem;
51+
font-size: 0.88rem;
4652
text-transform: uppercase;
47-
letter-spacing: 0.12em;
53+
letter-spacing: 0.1em;
4854
color: #e2e8f0;
55+
line-height: 1.2;
4956
}
5057

5158
.status {
5259
margin: 0;
53-
font-size: 0.85rem;
54-
line-height: 1.4;
60+
font-size: 0.8rem;
61+
line-height: 1.3;
5562
color: rgba(226, 232, 240, 0.88);
5663
}
5764

5865
.controls {
5966
display: grid;
60-
gap: 0.6rem;
67+
gap: 0.4rem;
6168
}
6269

6370
.file-picker {
6471
position: relative;
6572
display: flex;
6673
align-items: center;
6774
justify-content: center;
68-
padding: 0.65rem 0.95rem;
69-
border-radius: 0.85rem;
75+
padding: 0.45rem 0.75rem;
76+
border-radius: 0.7rem;
7077
border: 1px dashed rgba(148, 163, 184, 0.35);
7178
background: rgba(148, 163, 184, 0.08);
7279
color: inherit;
73-
font-size: 0.85rem;
80+
font-size: 0.8rem;
7481
cursor: pointer;
7582
transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
7683
}
@@ -95,12 +102,12 @@ body {
95102
.url-loader input {
96103
flex: 1 1 auto;
97104
min-width: 0;
98-
padding: 0.55rem 0.75rem;
99-
border-radius: 0.75rem;
105+
padding: 0.45rem 0.65rem;
106+
border-radius: 0.7rem;
100107
border: 1px solid rgba(148, 163, 184, 0.35);
101108
background: rgba(15, 23, 42, 0.65);
102109
color: inherit;
103-
font-size: 0.85rem;
110+
font-size: 0.8rem;
104111
}
105112

106113
.url-loader input:focus {
@@ -109,12 +116,12 @@ body {
109116
}
110117

111118
button {
112-
padding: 0.55rem 0.95rem;
113-
border-radius: 0.8rem;
119+
padding: 0.45rem 0.75rem;
120+
border-radius: 0.7rem;
114121
border: 1px solid rgba(148, 163, 184, 0.35);
115122
background: rgba(94, 234, 212, 0.12);
116123
color: inherit;
117-
font-size: 0.85rem;
124+
font-size: 0.8rem;
118125
cursor: pointer;
119126
transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
120127
}
@@ -138,20 +145,21 @@ button:disabled {
138145
.samples {
139146
display: flex;
140147
flex-direction: column;
141-
gap: 0.45rem;
148+
gap: 0.35rem;
142149
}
143150

144151
.samples-label {
145152
text-transform: uppercase;
146-
font-size: 0.7rem;
147-
letter-spacing: 0.16em;
153+
font-size: 0.68rem;
154+
letter-spacing: 0.14em;
148155
color: rgba(148, 163, 184, 0.8);
156+
line-height: 1.2;
149157
}
150158

151159
.sample-buttons {
152160
display: flex;
153161
flex-wrap: wrap;
154-
gap: 0.5rem;
162+
gap: 0.4rem;
155163
}
156164

157165
.sample-buttons button {
@@ -166,8 +174,8 @@ button:disabled {
166174

167175
.notice {
168176
margin: 0;
169-
font-size: 0.78rem;
170-
line-height: 1.4;
177+
font-size: 0.75rem;
178+
line-height: 1.3;
171179
color: rgba(226, 232, 240, 0.72);
172180
}
173181

0 commit comments

Comments
 (0)