From 9e13d6ba79531ccf06f0203c2fdbfa7582e1472b Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 5 Oct 2022 23:34:19 +0200 Subject: [PATCH 1/2] feat(nc-gui): add ping animation to logo on click --- .../nc-gui/components/general/NocoIcon.vue | 27 +++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui/components/general/NocoIcon.vue b/packages/nc-gui/components/general/NocoIcon.vue index 1819b2c6a8..f8fdd70095 100644 --- a/packages/nc-gui/components/general/NocoIcon.vue +++ b/packages/nc-gui/components/general/NocoIcon.vue @@ -1,4 +1,6 @@ From 5bb174ba4f9ca2c38a6b13c00a9252dca4bfa918 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:09:53 +0200 Subject: [PATCH 2/2] feat(nc-gui): make logo animation size responsive to logo size --- .../nc-gui/components/general/NocoIcon.vue | 29 ++++++++++++++----- .../nc-gui/components/general/PoweredBy.vue | 6 ++-- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/packages/nc-gui/components/general/NocoIcon.vue b/packages/nc-gui/components/general/NocoIcon.vue index f8fdd70095..32a95284c4 100644 --- a/packages/nc-gui/components/general/NocoIcon.vue +++ b/packages/nc-gui/components/general/NocoIcon.vue @@ -2,12 +2,11 @@ import { autoResetRef, useThrottleFn } from '#imports' interface Props { - width?: number - height?: number + size?: number animate?: boolean } -const { width = 90, height = 90, animate = false } = defineProps() +const { size = 90, animate = false } = defineProps() const ping = autoResetRef(false, 1000) @@ -18,21 +17,35 @@ const onClick = useThrottleFn(() => {