@@ -860,20 +860,23 @@ a:hover {
860860 margin : 0 ;
861861 line-height : 1.45 ;
862862 white-space : normal !important ;
863- overflow-wrap : anywhere;
864- word-break : break-word;
865- min-width : 0 ;
866- max-width : 100% ;
863+ overflow-wrap : break-word;
864+ word-break : normal;
867865 box-sizing : border-box;
866+ /* Wider, viewport-safe card; width floor + ~420px preferred cap (matches LAYER_POPUP_*_WIDTH_PX) */
867+ width : min (420px , calc (100vw - 24px ));
868+ min-width : min (320px , calc (100vw - 24px ));
869+ max-width : min (420px , calc (100vw - 24px ));
868870}
869871
870872.leaflet-popup .layer-popup-embed .leaflet-popup-tip-container {
871873 display : none;
872874}
873875
874876.layer-popup {
875- min-width : 0 ;
876- max-width : min (320px , calc (100vw - 24px ));
877+ width : 100% ;
878+ min-width : min (320px , calc (100vw - 24px ));
879+ max-width : min (420px , calc (100vw - 24px ));
877880 padding : 10px 12px ;
878881 background : rgba (20 , 20 , 20 , 0.55 );
879882 backdrop-filter : blur (12px );
@@ -889,7 +892,7 @@ a:hover {
889892 font-size : 14px ;
890893 font-weight : 700 ;
891894 line-height : 1.35 ;
892- margin-bottom : 8 px ;
895+ margin-bottom : 6 px ;
893896 color : rgba (255 , 255 , 255 , 0.98 );
894897 word-break : break-word;
895898}
@@ -901,11 +904,12 @@ a:hover {
901904}
902905
903906.layer-popup__row {
904- display : flex;
905- flex-direction : column;
906- align-items : stretch;
907- gap : 2px ;
908- margin-top : 8px ;
907+ display : grid;
908+ grid-template-columns : minmax (0 , 42% ) minmax (0 , 1fr );
909+ column-gap : 10px ;
910+ row-gap : 2px ;
911+ align-items : start;
912+ margin-top : 4px ;
909913 line-height : 1.4 ;
910914 word-break : break-word;
911915}
@@ -922,6 +926,10 @@ a:hover {
922926 text-transform : none;
923927 color : rgba (200 , 210 , 220 , 0.68 );
924928 margin : 0 ;
929+ min-width : 0 ;
930+ text-align : end;
931+ justify-self : end;
932+ max-width : 100% ;
925933}
926934
927935.layer-popup__value {
@@ -932,8 +940,10 @@ a:hover {
932940 margin : 0 ;
933941 min-width : 0 ;
934942 white-space : normal;
935- overflow-wrap : anywhere;
936- word-break : break-word;
943+ overflow-wrap : break-word;
944+ word-break : normal;
945+ text-align : start;
946+ justify-self : stretch;
937947}
938948
939949.layer-popup__actions {
@@ -942,7 +952,7 @@ a:hover {
942952 flex-wrap : wrap;
943953 gap : 8px ;
944954 justify-content : flex-start;
945- margin-top : 10 px ;
955+ margin-top : 8 px ;
946956 padding-top : 2px ;
947957}
948958
@@ -3491,20 +3501,19 @@ input.unified-submit-name-input,
34913501 box-sizing : border-box;
34923502}
34933503
3504+ .layer-packs-sheet-pack-scroller ::-webkit-scrollbar {
3505+ display : none;
3506+ }
3507+
34943508.layer-packs-sheet-pack-rows {
34953509 display : flex;
34963510 flex-direction : column;
3497- align-items : stretch;
34983511 gap : 6px ;
34993512 width : 100% ;
35003513 min-width : 0 ;
35013514 box-sizing : border-box;
35023515}
35033516
3504- .layer-packs-sheet-pack-scroller ::-webkit-scrollbar {
3505- display : none;
3506- }
3507-
35083517.layer-packs-sheet-pack-row {
35093518 display : grid;
35103519 grid-template-columns : minmax (0 , 1fr ) minmax (0 , 1fr );
@@ -3519,6 +3528,8 @@ input.unified-submit-name-input,
35193528 display : flex;
35203529 flex-direction : row;
35213530 align-items : stretch;
3531+ flex : 1 1 auto;
3532+ width : 100% ;
35223533 min-width : 0 ;
35233534 max-width : 100% ;
35243535 padding : 0 ;
@@ -3670,17 +3681,29 @@ input.unified-submit-name-input,
36703681 --layer-tile-partial-border : rgba (243 , 164 , 41 , 0.5 );
36713682 --layer-tile-off-bg : rgba (255 , 255 , 255 , 0.08 );
36723683 --layer-tile-off-border : rgba (255 , 255 , 255 , 0.2 );
3684+ width : 100% ;
3685+ min-width : 0 ;
3686+ box-sizing : border-box;
36733687}
36743688
36753689.layer-tiles-grid__list {
36763690 list-style : none;
36773691 display : grid;
3678- /* Slightly wider min column = less truncation, fewer odd gaps. */
3679- grid-template-columns : repeat (auto-fill, minmax (92px , 1fr ));
3680- gap : 5px 6px ;
3692+ grid-template-columns : repeat (auto-fit, minmax (96px , 1fr ));
3693+ grid-auto-rows : 1fr ;
3694+ justify-content : stretch;
3695+ gap : 4px ;
36813696 margin : 0 ;
36823697 padding : 0 0 2px ;
36833698 align-content : start;
3699+ width : 100% ;
3700+ min-width : 0 ;
3701+ box-sizing : border-box;
3702+ }
3703+
3704+ .layer-tiles-grid__item {
3705+ display : flex;
3706+ min-width : 0 ;
36843707}
36853708
36863709/* Compact card tiles: column layout, status rail, shadow (all rules below scoped to .layer-tiles-grid) */
@@ -3690,8 +3713,11 @@ input.unified-submit-name-input,
36903713 flex-direction : column;
36913714 align-items : stretch;
36923715 justify-content : flex-start;
3716+ flex : 1 1 auto;
3717+ width : 100% ;
3718+ height : 100% ;
36933719 /* Wins over global `.layer-tile { min-height: 0 !important }` */
3694- min-height : 48 px !important ;
3720+ min-height : 50 px !important ;
36953721 padding : 0 !important ;
36963722 text-align : start;
36973723 border-radius : 6px !important ;
@@ -3767,18 +3793,18 @@ input.unified-submit-name-input,
37673793 display : flex;
37683794 align-items : center;
37693795 min-height : 0 ;
3770- padding : 4 px 5 px 5 px ;
3796+ padding : 6 px 7 px 6 px ;
37713797 box-sizing : border-box;
37723798}
37733799
37743800.layer-tiles-grid .layer-tile__label {
37753801 display : -webkit-box;
37763802 -webkit-box-orient : vertical;
3777- -webkit-line-clamp : 3 ;
3803+ -webkit-line-clamp : 4 ;
37783804 overflow : hidden;
3779- font-size : 11.25 px ;
3805+ font-size : 12.5 px ;
37803806 font-weight : 600 ;
3781- line-height : 1.2 ;
3807+ line-height : 1.25 ;
37823808 padding : 0 ;
37833809 text-align : start;
37843810 word-break : break-word;
@@ -3830,11 +3856,6 @@ input.unified-submit-name-input,
38303856 box-sizing : border-box;
38313857}
38323858
3833- /* Predictable but shorter menu — large min-height left obvious empty area below the tile grid. */
3834- .layer-packs-sheet .layer-packs-sheet--size-stable {
3835- min-height : min (300px , 52vh );
3836- }
3837-
38383859@media (min-width : 901px ) {
38393860 .layer-packs-sheet {
38403861 border-radius : 14px ;
@@ -4163,6 +4184,42 @@ input.unified-submit-name-input,
41634184 border-bottom : none;
41644185}
41654186
4187+ .legend-tray__row--with-classes .legend-tray__row-label {
4188+ font-weight : 700 ;
4189+ }
4190+
4191+ .legend-tray__class-list {
4192+ list-style : none;
4193+ margin : 6px 0 0 ;
4194+ padding : 0 ;
4195+ padding-inline-start : 14px ;
4196+ border-inline-start : 2px solid rgba (255 , 255 , 255 , 0.1 );
4197+ display : flex;
4198+ flex-direction : column;
4199+ gap : 2px ;
4200+ width : 100% ;
4201+ box-sizing : border-box;
4202+ }
4203+
4204+ .legend-tray__class-row {
4205+ display : flex;
4206+ flex-direction : column;
4207+ align-items : flex-end;
4208+ text-align : right;
4209+ font-size : 12.5px ;
4210+ line-height : 1.35 ;
4211+ padding : 3px 0 ;
4212+ }
4213+
4214+ .legend-tray__row-inner--class {
4215+ font-weight : 400 ;
4216+ }
4217+
4218+ .legend-tray__class-label {
4219+ font-weight : 500 ;
4220+ color : rgba (255 , 255 , 255 , 0.92 );
4221+ }
4222+
41664223.legend-tray__row-label {
41674224 font-weight : 600 ;
41684225}
0 commit comments