Skip to content

Commit 5c9d096

Browse files
committed
fix list-pane-head
1 parent de9246c commit 5c9d096

3 files changed

Lines changed: 46 additions & 14 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ebird-hotspot-deduper",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"private": true,
55
"type": "module",
66
"scripts": {

src/App.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ async function fetchHotspotsAndSelectFirstPair() {
216216
.content-split {
217217
flex: 1;
218218
min-height: 0;
219+
min-width: 0;
219220
position: relative;
220221
display: grid;
221222
grid-template-columns: minmax(340px, 42%) 1fr;
@@ -225,6 +226,7 @@ async function fetchHotspotsAndSelectFirstPair() {
225226
display: flex;
226227
flex-direction: column;
227228
min-height: 0;
229+
min-width: 0;
228230
border-right: 1px solid var(--brand-border);
229231
background: color-mix(in srgb, var(--brand-surface) 86%, white 14%);
230232
backdrop-filter: blur(4px);
@@ -241,6 +243,7 @@ async function fetchHotspotsAndSelectFirstPair() {
241243
display: flex;
242244
flex-direction: column;
243245
min-height: 0;
246+
min-width: 0;
244247
background: color-mix(in srgb, var(--brand-surface) 84%, white 16%);
245248
}
246249

src/components/ResultsPanel.vue

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,10 @@ function distanceIntensityClass(distanceMeters) {
300300
301301
.list-pane-head {
302302
display: flex;
303-
align-items: center;
303+
align-items: flex-start;
304304
justify-content: space-between;
305-
gap: 0.65rem;
305+
flex-wrap: wrap;
306+
gap: 0.7rem 0.8rem;
306307
padding: 0.82rem 0.84rem;
307308
border-bottom: 1px solid var(--brand-border);
308309
background:
@@ -312,15 +313,16 @@ function distanceIntensityClass(distanceMeters) {
312313
#ffffff 0%,
313314
color-mix(in srgb, var(--brand-surface) 62%, #ffffff 38%) 100%
314315
);
315-
overflow-x: auto;
316+
min-width: 0;
316317
}
317318
318319
.head-top {
319320
display: flex;
320321
align-items: center;
321322
gap: 0.5rem;
322-
flex: 0 0 auto;
323-
white-space: nowrap;
323+
flex: 1 1 14rem;
324+
min-width: 0;
325+
flex-wrap: wrap;
324326
}
325327
326328
.head-title {
@@ -346,16 +348,19 @@ function distanceIntensityClass(distanceMeters) {
346348
align-items: center;
347349
gap: 0.6rem;
348350
margin-top: 0;
349-
flex-wrap: nowrap;
351+
flex: 1 1 28rem;
352+
flex-wrap: wrap;
353+
justify-content: flex-end;
350354
min-width: 0;
351355
}
352356
353357
.filter-item {
354358
min-width: 0;
355-
display: inline-flex;
356-
align-items: center;
357-
gap: 0.35rem;
358-
white-space: nowrap;
359+
display: flex;
360+
flex-direction: column;
361+
align-items: flex-start;
362+
gap: 0.22rem;
363+
flex: 1 1 9rem;
359364
}
360365
361366
.filter-label {
@@ -375,12 +380,19 @@ function distanceIntensityClass(distanceMeters) {
375380
}
376381
377382
.filter-input {
378-
width: 4.2rem;
383+
width: 100%;
384+
min-width: 0;
379385
border-color: color-mix(in srgb, var(--brand-border) 78%, #ffffff 22%);
380386
font-weight: 600;
381387
color: var(--brand-ink);
382388
}
383389
390+
.filter-item :deep(.input-group) {
391+
width: 100%;
392+
min-width: 0;
393+
flex-wrap: nowrap;
394+
}
395+
384396
.head-filters :deep(.form-control),
385397
.head-filters :deep(.form-select),
386398
.head-filters :deep(.input-group-text) {
@@ -389,10 +401,12 @@ function distanceIntensityClass(distanceMeters) {
389401
390402
.sort-item {
391403
min-width: 0;
404+
flex-basis: 11rem;
392405
}
393406
394407
.sort-select {
395-
min-width: 8.5rem;
408+
width: 100%;
409+
min-width: 0;
396410
border-color: color-mix(in srgb, var(--brand-border) 78%, #ffffff 22%);
397411
color: var(--brand-ink);
398412
}
@@ -554,14 +568,29 @@ function distanceIntensityClass(distanceMeters) {
554568
555569
@media (max-width: 680px) {
556570
.list-pane-head {
557-
gap: 0.45rem;
571+
gap: 0.55rem;
558572
padding: 0.7rem 0.68rem;
559573
}
560574
561575
.head-title {
562576
font-size: 0.91rem;
563577
}
564578
579+
.head-top,
580+
.head-filters,
581+
.filter-item,
582+
.sort-item {
583+
flex-basis: 100%;
584+
}
585+
586+
.head-filters {
587+
justify-content: stretch;
588+
}
589+
590+
.filter-item {
591+
width: 100%;
592+
}
593+
565594
.filter-label {
566595
font-size: 0.67rem;
567596
}

0 commit comments

Comments
 (0)