Skip to content

A self-hosted media server and file management system

feat: animated active state on buttons

aminnausin4e9d10a199bb
diff --git a/resources/js/components/cedar-ui/button/ButtonBase.vue b/resources/js/components/cedar-ui/button/ButtonBase.vue
index 5fa61d83..ab91af62 100644
--- a/resources/js/components/cedar-ui/button/ButtonBase.vue
+++ b/resources/js/components/cedar-ui/button/ButtonBase.vue
@@ -19,11 +19,13 @@ const props = withDefaults(
useSize?: boolean;
target?: string;
type?: ButtonType;
+ animateScale?: boolean;
}>(),
{
useSize: true,
disabled: false,
type: 'button',
+ animateScale: true,
},
);
@@ -62,6 +64,7 @@ defineExpose({
'cursor-pointer', // Style
{ 'h-8 max-h-full p-2': useSize }, // Size
'rounded-md', // Shape
+ { 'active:scale-96': animateScale },
props.class,
)
"
diff --git a/resources/js/components/cedar-ui/table/TablePaginationButton.vue b/resources/js/components/cedar-ui/table/TablePaginationButton.vue
index 91f83c3f..03342c10 100644
--- a/resources/js/components/cedar-ui/table/TablePaginationButton.vue
+++ b/resources/js/components/cedar-ui/table/TablePaginationButton.vue
@@ -23,6 +23,7 @@ const props = withDefaults(defineProps<TablePaginationButtonProps>(), {
"
:disabled="disabled ?? false"
:use-size="false"
+ :animate-scale="false"
>
<slot name="content">
<span class="-mb-px flex h-full flex-1 items-center px-3 text-center">