@@ -197,17 +197,16 @@ body main .panel { min-width: 0; }
197197}
198198
199199/* -------------------------
200- Updates area (collapsible)
200+ Updates area (collapsible) - dynamic height
201201 ------------------------- */
202-
203202.updates-box {
204203 margin-top : 6px ;
205204 padding : 12px ;
206205 background : var (--glass );
207206 border-radius : 10px ;
208207 border : 1px solid var (--card-border );
209208 box-sizing : border-box;
210- overflow : hidden;
209+ overflow : visible; /* allow inner to expand dynamically */
211210 transition : box-shadow .12s ease;
212211}
213212
@@ -218,7 +217,12 @@ body main .panel { min-width: 0; }
218217 justify-content : space-between;
219218 gap : 12px ;
220219}
221- .updates-title { margin : 0 ; font-weight : 600 ; color : var (--text ); font-size : 15px ; }
220+ .updates-title {
221+ margin : 0 ;
222+ font-weight : 600 ;
223+ color : var (--text );
224+ font-size : 15px ;
225+ }
222226
223227/* toggle button (the ^) */
224228.updates-toggle {
@@ -246,43 +250,34 @@ body main .panel { min-width: 0; }
246250 background : rgba (15 , 23 , 36 , 0.02 );
247251 color : var (--text );
248252}
249- /* rotated class flips the caret to look like a v */
250253.updates-toggle .rotated {
251254 transform : rotate (180deg );
252255}
253256
254- /* inner content (animated open/close ) */
257+ /* inner content (height controlled dynamically by JS ) */
255258.updates-inner {
256- max-height : 160 px ; /* normal expanded height (clamped) */
257- overflow-y : auto ;
259+ max-height : 0 ; /* collapsed by default; JS will set px when expanded */
260+ overflow : hidden ;
258261 padding-top : 10px ;
259262 padding-bottom : 6px ;
260263 transition : max-height .28s cubic-bezier (.2 , .8 , .2 , 1 ), padding .18s ease;
261264}
262265
263- /* collapsed state: hide the inner area smoothly */
266+ /* collapsed specifics */
264267.updates-box .collapsed .updates-inner {
265268 max-height : 0 ;
266269 padding-top : 0 ;
267270 padding-bottom : 0 ;
268271}
269272
270- /* expanded state ( for clarity) */
271- .updates-box . expanded . updates-inner {
272- max-height : 160 px ;
273- padding-top : 10 px ;
274- padding-bottom : 6 px ;
273+ /* cosmetic for items */
274+ .update-item {
275+ margin-bottom : 8 px ;
276+ font-size : 13 px ;
277+ color : var ( --muted );
275278}
276279
277- /* small cosmetic when collapsed */
278- .updates-box .collapsed {
279- box-shadow : none;
280- }
281-
282- /* show single-line "No updates" content elegantly */
283- .update-item { margin-bottom : 8px ; font-size : 13px ; color : var (--muted ); }
284-
285- /* responsive tweaks if header wraps on tiny screens */
280+ /* responsive tweaks for tiny screens */
286281@media (max-width : 420px ) {
287282 .updates-header { gap : 8px ; }
288283 .updates-title { font-size : 14px ; }
0 commit comments