|
8 | 8 | DropdownMenuRadioItem, |
9 | 9 | DropdownMenuTrigger, |
10 | 10 | Duplicate, |
| 11 | + Loader, |
11 | 12 | PlayOutline, |
12 | 13 | Tooltip, |
13 | 14 | Trash, |
@@ -48,19 +49,8 @@ type ActionId = 'run' | 'enabled' | 'lock' | 'duplicate' | 'remove' | 'delete' | |
48 | 49 | function RunningActionIcon() { |
49 | 50 | return ( |
50 | 51 | <span className='relative grid size-[14px] place-items-center' aria-hidden='true'> |
51 | | - <span className='col-start-1 row-start-1 opacity-100 transition-opacity duration-100 group-hover/run:opacity-0 group-focus-visible/run:opacity-0 motion-safe:animate-spin motion-reduce:transition-none'> |
52 | | - <svg className='size-[14px]' viewBox='0 0 24 24' fill='none'> |
53 | | - <circle cx='12' cy='12' r='10' stroke='currentColor' strokeWidth='2' opacity='0.25' /> |
54 | | - <circle |
55 | | - cx='12' |
56 | | - cy='12' |
57 | | - r='10' |
58 | | - stroke='currentColor' |
59 | | - strokeWidth='2' |
60 | | - strokeLinecap='round' |
61 | | - strokeDasharray='18 45' |
62 | | - /> |
63 | | - </svg> |
| 52 | + <span className='col-start-1 row-start-1 opacity-100 transition-opacity duration-100 group-hover/run:opacity-0 group-focus-visible/run:opacity-0 motion-reduce:transition-none'> |
| 53 | + <Loader animate className='size-[14px]' /> |
64 | 54 | </span> |
65 | 55 | <span className='col-start-1 row-start-1 opacity-0 transition-opacity duration-100 group-hover/run:opacity-100 group-focus-visible/run:opacity-100 motion-reduce:transition-none'> |
66 | 56 | <Square className='size-[11px] fill-current' strokeWidth={0} /> |
@@ -254,12 +244,12 @@ export const ActionBar = memo( |
254 | 244 | ], |
255 | 245 | isSwell && |
256 | 246 | actionId === firstActionId && |
257 | | - "!w-[40px] [clip-path:path('M23.75_0A8_8_0_0_0_17.6_2.88L3.41_19.9A2.5_2.5_0_0_0_5.34_24L36_24A4_4_0_0_0_40_20L40_4A4_4_0_0_0_36_0Z')] [&_svg]:translate-y-px", |
| 247 | + "!w-[40px] [clip-path:path('M23.75_0A8_8_0_0_0_17.6_2.88L3.41_19.9A2.5_2.5_0_0_0_5.34_24L36_24A4_4_0_0_0_40_20L40_4A4_4_0_0_0_36_0Z')] [&>svg]:translate-y-px", |
258 | 248 | isSwell && |
259 | 249 | actionId === firstActionId && |
260 | 250 | (actionId === 'run' || actionId === 'color' |
261 | | - ? '[&_svg]:translate-x-[8px]' |
262 | | - : '[&_svg]:translate-x-[6px]'), |
| 251 | + ? '[&>svg]:translate-x-[8px]' |
| 252 | + : '[&>svg]:translate-x-[6px]'), |
263 | 253 | isSwell && |
264 | 254 | actionId === 'delete' && |
265 | 255 | "!w-[40px] [clip-path:path('M16.25_0A8_8_0_0_1_22.4_2.88L36.59_19.9A2.5_2.5_0_0_1_34.66_24L4_24A4_4_0_0_1_0_20L0_4A4_4_0_0_1_4_0Z')] [&_svg]:-translate-x-[6px] [&_svg]:translate-y-px", |
|
0 commit comments