Skip to content

Commit

Permalink
adapt layout to new color picker
Browse files Browse the repository at this point in the history
  • Loading branch information
saboooor committed Jun 12, 2024
1 parent fbaa760 commit 2a58077
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 169 deletions.
4 changes: 2 additions & 2 deletions src/routes/resources/animtab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ export default component$(() => {
class={{
'motion-safe:transition-all absolute top-full mt-2 gap-1 z-[1000]': true,
'opacity-0 scale-95 pointer-events-none': store.opened != i,
'left-0': i + 1 < Math.round(store.colors.length / 2),
'right-0': i + 1 >= Math.round(store.colors.length / 2),
'left-0': i < store.colors.length / 2,
'right-0': i >= store.colors.length / 2,
}}
onInput$={(newColor: string) => {
const newColors = [...store.colors];
Expand Down
Loading

0 comments on commit 2a58077

Please sign in to comment.