@@ -197,24 +197,97 @@ body main .panel { min-width: 0; }
197197}
198198
199199/* -------------------------
200- Updates area
200+ Updates area (collapsible)
201201 ------------------------- */
202+
202203.updates-box {
203204 margin-top : 6px ;
204205 padding : 12px ;
205206 background : var (--glass );
206207 border-radius : 10px ;
207208 border : 1px solid var (--card-border );
208209 box-sizing : border-box;
210+ overflow : hidden;
211+ transition : box-shadow .12s ease;
212+ }
213+
214+ /* header row: title + toggle on right */
215+ .updates-header {
216+ display : flex;
217+ align-items : center;
218+ justify-content : space-between;
219+ gap : 12px ;
220+ }
221+ .updates-title { margin : 0 ; font-weight : 600 ; color : var (--text ); font-size : 15px ; }
222+
223+ /* toggle button (the ^) */
224+ .updates-toggle {
225+ border : none;
226+ background : transparent;
227+ font-weight : 700 ;
228+ font-size : 16px ;
229+ line-height : 1 ;
230+ cursor : pointer;
231+ padding : 6px 8px ;
232+ border-radius : 6px ;
233+ color : var (--muted );
234+ transition : transform .18s ease, background .12s ease, color .12s ease;
235+ display : inline-flex;
236+ align-items : center;
237+ justify-content : center;
238+ min-width : 34px ;
239+ min-height : 34px ;
240+ }
241+ .updates-toggle : focus {
242+ outline : 3px solid rgba (37 , 99 , 235 , 0.12 );
243+ outline-offset : 2px ;
209244}
210- .updates-title { margin : 0 0 8px 0 ; font-weight : 600 ; color : var (--text ); }
245+ .updates-toggle : hover {
246+ background : rgba (15 , 23 , 36 , 0.02 );
247+ color : var (--text );
248+ }
249+ /* rotated class flips the caret to look like a v */
250+ .updates-toggle .rotated {
251+ transform : rotate (180deg );
252+ }
253+
254+ /* inner content (animated open/close) */
211255.updates-inner {
212- max-height : 160px ;
213- overflow-y : auto;
214- padding-right : 6px ;
256+ max-height : 160px ; /* normal expanded height (clamped) */
257+ overflow-y : auto;
258+ padding-top : 10px ;
259+ padding-bottom : 6px ;
260+ transition : max-height .28s cubic-bezier (.2 , .8 , .2 , 1 ), padding .18s ease;
261+ }
262+
263+ /* collapsed state: hide the inner area smoothly */
264+ .updates-box .collapsed .updates-inner {
265+ max-height : 0 ;
266+ padding-top : 0 ;
267+ padding-bottom : 0 ;
268+ }
269+
270+ /* expanded state (for clarity) */
271+ .updates-box .expanded .updates-inner {
272+ max-height : 160px ;
273+ padding-top : 10px ;
274+ padding-bottom : 6px ;
275+ }
276+
277+ /* small cosmetic when collapsed */
278+ .updates-box .collapsed {
279+ box-shadow : none;
215280}
281+
282+ /* show single-line "No updates" content elegantly */
216283.update-item { margin-bottom : 8px ; font-size : 13px ; color : var (--muted ); }
217284
285+ /* responsive tweaks if header wraps on tiny screens */
286+ @media (max-width : 420px ) {
287+ .updates-header { gap : 8px ; }
288+ .updates-title { font-size : 14px ; }
289+ }
290+
218291/* -------------------------
219292 Modal styles (keeps modal consistent)
220293 ------------------------- */
0 commit comments