Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): add image width transition

Ramesh Mane0c7709ddbf1d
diff --git a/packages/nc-gui/components/auth/onboarding/Layout/ImagePreviewSection.vue b/packages/nc-gui/components/auth/onboarding/Layout/ImagePreviewSection.vue
index 5480d7d7f7..48260a7748 100644
--- a/packages/nc-gui/components/auth/onboarding/Layout/ImagePreviewSection.vue
+++ b/packages/nc-gui/components/auth/onboarding/Layout/ImagePreviewSection.vue
@@ -81,8 +81,8 @@ const moscotImageSize = computed(() => {
case 'moscotGridTableBrand':
case 'moscotGridTableOrange':
return {
- height: '358px',
- width: '480px',
+ height: '335px',
+ width: '440px',
}
default:
return {
@@ -125,7 +125,12 @@ defineExpose({
<div class="nc-view-image-box" :style="{ backgroundImage: `url(${viewImage})` }"></div>
<div class="nc-view-image-box nc-moscot-image-box">
<div class="h-full w-full relative">
- <img alt="moscot image" :src="moscotImage" class="nc-moscot-image" :style="moscotImageSize" />
+ <img
+ alt="moscot image"
+ :src="moscotImage"
+ class="nc-moscot-image transition-width duration-350 ease-linear"
+ :style="moscotImageSize"
+ />
</div>
</div>
<div class="hidden">
diff --git a/packages/nc-gui/components/auth/onboarding/Layout/index.vue b/packages/nc-gui/components/auth/onboarding/Layout/index.vue
index 5458ac8c10..cea974ffdb 100644
--- a/packages/nc-gui/components/auth/onboarding/Layout/index.vue
+++ b/packages/nc-gui/components/auth/onboarding/Layout/index.vue
@@ -17,13 +17,17 @@ const progress = computed(() => {
})
useEventListener('keydown', (event) => {
- if (!isFilledVisibleOptions.value) return
-
if (event.key === 'Enter') {
- if (isLast.value) {
- onCompleteOnboardingFlow(false)
- } else {
- goToNext()
+ if (!event.shiftKey && isFilledVisibleOptions.value) {
+ if (isLast.value) {
+ onCompleteOnboardingFlow(false)
+ } else {
+ goToNext()
+ }
+ }
+
+ if (event.shiftKey && !isFirst.value) {
+ goToPrevious()
}
}
})