Skip to content

Commit

Permalink
ok really fix the thing now
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed May 21, 2024
1 parent f6ddc61 commit 4daf31e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
clip-path: var(--clip-final);
transform: translateX(0);
opacity: 1;
width: auto;
height: auto;
}
80% {
transform: translate(calc(-50% + 21px), var(--bar-initial-y-offset))
Expand All @@ -91,6 +93,8 @@
transform: translate(calc(-50% + 21px), var(--bar-initial-y-offset))
scale(var(--bar-scale-compensate));
opacity: 0;
width: auto;
height: auto;
}
}

Expand All @@ -107,6 +111,9 @@
transform: translate(calc(-50% + 21px), var(--bar-initial-y-offset))
scale(var(--bar-scale-compensate));

width: 0;
height: 0;

animation: addBarHideInset 0.2s ease-out;
}
.add-bar-hidden {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export function FloatingAdd({ className, ...rest }: FloatingAddProps) {
className={classNames(
'relative z-1 shadow-xl',
'add-bar',
open ? 'add-bar-visible' : 'add-bar-hidden pointer-events-none',
open
? 'add-bar-visible pointer-events-auto'
: 'add-bar-hidden pointer-events-none',
disableAnimation && 'disable-animation',
)}
{...rest}
Expand All @@ -64,7 +66,7 @@ export function FloatingAdd({ className, ...rest }: FloatingAddProps) {
onClick={() => setOpen(true)}
color="primary"
className={classNames(
'absolute shadow-xl bottom-0 left-1/2 transform -translate-x-1/2',
'absolute shadow-xl bottom-0 left-1/2 transform -translate-x-1/2 pointer-events-auto',
'add-button',
open ? 'hidden' : 'visible',
)}
Expand Down
2 changes: 1 addition & 1 deletion apps/gnocchi/web/src/pages/groceries/GroceriesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function GroceriesPage() {
<List />
<UnknownListRedirect listId={listId} />
<AutoRestoreScroll />
<PageNowPlaying unstyled className="items-center">
<PageNowPlaying unstyled className="items-center pointer-events-none">
<FloatingAdd />
</PageNowPlaying>
</ThemedPageContent>
Expand Down

0 comments on commit 4daf31e

Please sign in to comment.