1818 .tabs {display : flex;gap : 8px ;border-bottom : 1px solid var (--border );margin : 0 16px }
1919 .tab {padding : 10px 12px ;border : 1px solid var (--border );border-bottom : none;border-radius : 12px 12px 0 0 ;background : # fff ;cursor : pointer}
2020 .tab [aria-selected = "true" ]{background : var (--chip )}
21- .panel {border : 1 px solid var ( --border ); border-radius : 16 px ; padding : 16 px ; background : # fff ; margin : 0 16 px }
21+ .panel {$1 overflow : au to }
2222 .toolbar {display : flex;gap : 8px ;align-items : center;justify-content : space-between;margin-bottom : 12px }
2323 .range {display : grid;grid-template-columns : 1fr 1fr ;gap : 12px }
24- .grid {display : grid;grid-template-columns : repeat (7 , 1fr );gap : 10px }
24+ .grid {display : grid;grid-template-columns : repeat (7 , 220px );gap : 10px }
25+ .calendar-shell {border : 1px solid var (--border );border-radius : 16px ;padding : 12px ;width : fit-content;}
2526 .day {min-height : 160px ;border : 1px solid var (--border );border-radius : 16px ;padding : 10px ;background : # fff ;display : flex;flex-direction : column}
2627 .day .today {outline : 2px solid var (--ring )}
2728 .daytop {display : flex;align-items : baseline;justify-content : space-between}
4546</ head >
4647< body >
4748 < header >
48- < h1 > 📅 Smart Calendar — 2‑Week Time Tracker (Vanilla)</ h1 >
49- < div >
50- < button class ="btn " id ="btnExport "> Export JSON</ button >
51- < label class ="btn " for ="importFile "> Import JSON</ label >
49+ < div style ="display:flex; gap:8px; margin-left:auto ">
50+ < button class ="btn small " id ="btnExport " title ="Export JSON "> ⬇︎</ button >
51+ < label class ="btn small " for ="importFile " title ="Import JSON "> ⬆︎</ label >
5252 < input id ="importFile " type ="file " accept ="application/json " class ="hidden " />
5353 </ div >
5454 </ header >
@@ -71,7 +71,9 @@ <h1>📅 Smart Calendar — 2‑Week Time Tracker (Vanilla)</h1>
7171 </ div >
7272 < button class ="btn " id ="addEntryOpen "> Add Entry</ button >
7373 </ div >
74- < div class ="grid " id ="calGrid "> </ div >
74+ < div class ="calendar-shell ">
75+ < div class ="grid " id ="calGrid "> </ div >
76+ </ div >
7577 </ section >
7678
7779 <!-- Totals Panel -->
@@ -310,8 +312,8 @@ <h3 style="margin:0 0 8px">Add Time Entry</h3>
310312 } ;
311313
312314 addEntryOpen . onclick = ( ) => openDialog ( fmtYMD ( new Date ( ) ) ) ;
313- btnPrev . onclick = ( ) => { anchor = addDays ( startOfISOWeek ( anchor ) , - 14 ) ; renderCalendar ( ) ; } ;
314- btnNext . onclick = ( ) => { anchor = addDays ( startOfISOWeek ( anchor ) , 14 ) ; renderCalendar ( ) ; } ;
315+ btnPrev . onclick = ( ) => { anchor = addDays ( startOfISOWeek ( anchor ) , - 7 ) ; renderCalendar ( ) ; } ; renderCalendar ( ) ; } ;
316+ btnNext . onclick = ( ) => { anchor = addDays ( startOfISOWeek ( anchor ) , 7 ) ; renderCalendar ( ) ; } ; renderCalendar ( ) ; } ;
315317 btnToday . onclick = ( ) => { anchor = startOfISOWeek ( new Date ( ) ) ; renderCalendar ( ) ; } ;
316318
317319 function delEntry ( id ) { db . entries = db . entries . filter ( e => e . id !== id ) ; saveDB ( ) ; }
@@ -398,4 +400,4 @@ <h3 style="margin:0 0 8px">Add Time Entry</h3>
398400
399401 </ script >
400402</ body >
401- </ html >
403+ </ html >
0 commit comments