@@ -133,9 +133,10 @@ function updateSelection(item, mode) {
133133 'cursor-pointer' ,
134134 'border-zinc-900' ,
135135 'bg-zinc-800' ,
136+ 'border-b-2' ,
136137 ]
137- const selectedStyle = [ 'border-zinc-900 ' , 'bg-orange-900 ' , 'rounded-b-2xl' ]
138- const normalStyle = [ 'border-zinc-700 ' , 'text-zinc-400' ]
138+ const selectedStyle = [ 'border-orange-400 ' , 'border-1 ' , 'rounded-b-2xl' ]
139+ const normalStyle = [ 'border-zinc-800' , 'border-b-2 ', 'text-zinc-400' ]
139140 item . classList . remove ( ...activeStyle , ...selectedStyle , ...normalStyle )
140141 if ( mode == 'active' ) item . classList . add ( ...activeStyle )
141142 else if ( mode == 'selected' ) item . classList . add ( ...selectedStyle )
@@ -252,15 +253,17 @@ function createItemElement(line, isBg = false) {
252253 item . dataset . type = isBg ? 'bg' : 'normal'
253254 item . classList . add (
254255 'flex' ,
255- 'p-3 ',
256- 'pl-4 ' ,
256+ isBg ? 'py-2' : 'py-4 ',
257+ 'px-5 ' ,
257258 'gap-2' ,
258259 'text-zinc-400' ,
259260 'items-center' ,
260261 'rounded' ,
262+ 'first:rounded-t-2xl' ,
263+ 'last:rounded-b-2xl' ,
261264 'border-b-2' ,
262265 'border-zinc-800' ,
263- 'duration-500 ' ,
266+ 'duration-300 ' ,
264267 'ease-out' ,
265268 'transition-all' ,
266269 'scroll-mt-[20svh]' ,
@@ -274,9 +277,7 @@ function createItemElement(line, isBg = false) {
274277 if ( isDuet ) item . dataset . vocalist = 1
275278 lineEl . classList . add (
276279 'grow' ,
277- isBg ? 'text-sm' : 'text-xl' ,
278- 'text-start' ,
279- 'font-semibold' ,
280+ isBg ? null : 'text-2xl' ,
280281 'transition-all' ,
281282 'duration-300' ,
282283 )
@@ -598,12 +599,14 @@ editItemDone.addEventListener('click', () => {
598599 }
599600 if ( markAsBg . checked ) {
600601 itemsList [ index ] . dataset . type = 'bg'
601- itemsList [ index ] . children [ 0 ] . classList . remove ( 'text-xl' )
602- itemsList [ index ] . children [ 0 ] . classList . add ( 'text-sm' )
602+ itemsList [ index ] . children [ 0 ] . classList . remove ( 'text-2xl' , 'p-4' )
603+ itemsList [ index ] . classList . remove ( 'py-4' )
604+ itemsList [ index ] . classList . add ( 'py-2' )
603605 } else {
604606 itemsList [ index ] . dataset . type = 'normal'
605- itemsList [ index ] . children [ 0 ] . classList . remove ( 'text-sm' )
606- itemsList [ index ] . children [ 0 ] . classList . add ( 'text-xl' )
607+ itemsList [ index ] . classList . remove ( 'py-2' )
608+ itemsList [ index ] . classList . add ( 'py-4' )
609+ itemsList [ index ] . children [ 0 ] . classList . add ( 'text-2xl' )
607610 }
608611} )
609612
0 commit comments