Skip to content

Commit

Permalink
fix: graph filters sheet animation (#15)
Browse files Browse the repository at this point in the history
* fix: add missing `tailwindcss-animate` plugin

* refactor: animate sheet faster from `500/300` to `300/200`
  • Loading branch information
byCedric authored Mar 27, 2024
1 parent 06c28b1 commit 24dd5d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Binary file modified webui/bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"react-native-safe-area-context": "4.8.2",
"react-native-svg": "14.1.0",
"react-native-web": "~0.19.6",
"tailwindcss": "^3.4.1"
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
2 changes: 1 addition & 1 deletion webui/src/ui/Sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const SheetOverlay = () => null;
// SheetOverlay.displayName = Dialog.Overlay.displayName;

const sheetVariants = cva(
'fixed z-50 gap-4 bg-overlay border border-default p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
'fixed z-50 gap-4 bg-overlay border border-default p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:duration-300',
{
variants: {
side: {
Expand Down
1 change: 1 addition & 0 deletions webui/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ module.exports = {
...expoTheme,
content: ['./src/**/*.{js,jsx,ts,tsx}'],
presets: [require('nativewind/preset')],
plugins: [require('tailwindcss-animate')],
};

0 comments on commit 24dd5d0

Please sign in to comment.