File tree Expand file tree Collapse file tree 2 files changed +42
-4
lines changed Expand file tree Collapse file tree 2 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 156
156
}
157
157
158
158
@media (max-width : 768px ) {
159
+ /* Panels should expand with content on mobile */
160
+ .frosted-panel {
161
+ overflow : visible ;
162
+ }
163
+ /* Allow the page to scroll on mobile; don't lock to viewport height */
164
+ .desktop-container {
165
+ height : auto ;
166
+ min-height : 100vh ;
167
+ overflow : auto ;
168
+ }
169
+
159
170
.main-layout {
160
171
flex-direction : column ;
161
172
gap : 8px ;
173
+ height : auto !important ; /* override inline height */
174
+ min-height : 0 ;
162
175
}
163
176
.left-column {
164
177
width : 100% ;
165
- flex-direction : row ;
166
- height : 40 % ;
178
+ flex-direction : column ; /* stack panels vertically on mobile */
179
+ height : auto ;
167
180
gap : 8px ;
168
181
}
182
+ /* Reset child panel sizing constraints for mobile */
183
+ .left-column .guardian-panel ,
184
+ .left-column .pet-panel {
185
+ min-height : unset ;
186
+ max-height : unset ;
187
+ height : auto ;
188
+ }
189
+ /* Let the viewport take remaining vertical space */
169
190
.viewport-column {
170
- height : 60% ;
191
+ flex : 1 1 auto ;
192
+ min-height : 0 ;
193
+ /* ensure it's visible even if content is short */
194
+ /* height will expand with content; page scrolls */
195
+ }
196
+
197
+ /* Uncap inner CLI areas so content is visible on mobile */
198
+ :global(.guardian-panel .cli-content ),
199
+ :global(.pet-panel .cli-content ) {
200
+ max-height : none !important ;
201
+ overflow : visible ;
171
202
}
172
203
}
173
204
</style >
Original file line number Diff line number Diff line change 504
504
: ' y' }
505
505
</span >
506
506
<div class =" ml-2 flex items-center gap-2" >
507
- <button class ="arrow-btn" onclick ={() => selectPet (pet .id )}>select</button >
507
+ <button class ="arrow-btn btn-select " onclick ={() => selectPet (pet .id )}>select</button >
508
508
<button class ="arrow-btn" onclick ={() => archivePet (pet .id )}>archive</button >
509
509
</div >
510
510
</div >
610
610
border-color : var (--petalytics-accent );
611
611
box-shadow : 0 0 0 2px color-mix(in oklab, var (--petalytics-accent ) 35% , transparent );
612
612
}
613
+
614
+ /* Mobile: hide explicit select button to save space; row click selects */
615
+ @media (max-width : 768px ) {
616
+ .btn-select {
617
+ display : none ;
618
+ }
619
+ }
613
620
</style >
You can’t perform that action at this time.
0 commit comments