From 90c9481827027fab55d22d461a08438d70c8fdba Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Wed, 20 Sep 2023 15:36:51 +0530 Subject: [PATCH] fix: gallery style --- packages/nc-gui/components/cell/Checkbox.vue | 12 ++-- .../nc-gui/components/smartsheet/Gallery.vue | 61 +++++++------------ 2 files changed, 27 insertions(+), 46 deletions(-) diff --git a/packages/nc-gui/components/cell/Checkbox.vue b/packages/nc-gui/components/cell/Checkbox.vue index bab7742ebb..5445c3e983 100644 --- a/packages/nc-gui/components/cell/Checkbox.vue +++ b/packages/nc-gui/components/cell/Checkbox.vue @@ -36,6 +36,8 @@ const isForm = inject(IsFormInj) const isEditColumnMenu = inject(EditColumnInj, ref(false)) +const isGallery = inject(IsGalleryInj, ref(false)) + const readOnly = inject(ReadonlyInj) const checkboxMeta = computed(() => { @@ -80,18 +82,14 @@ useSelectedCellKeyupListener(active, (e) => {
-
+
-

+

-
+
-
+
.nc-gallery-container { - grid-auto-rows: 1fr; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); -} - -.ant-card-body { - @apply !p-0; + @apply auto-rows-[1fr] grid-cols-[repeat(auto-fit,minmax(250px,1fr))]; } :deep(.slick-dots li button) { - background-color: black; + @apply !bg-black; } .ant-carousel.gallery-carousel :deep(.slick-dots) { - @apply !w-auto; - position: absolute; + @apply !w-auto absolute h-auto bottom-[-15px] absolute h-auto; height: auto; - bottom: 3; } .ant-carousel.gallery-carousel :deep(.slick-dots li div > div) { - @apply rounded-full; - background: #d9d9d9; - border: 0; - color: transparent; - cursor: pointer; - display: block; + @apply rounded-full border-0 cursor-pointer block opacity-100 p-0 outline-none transition-all duration-500 text-transparent h-2 w-2 bg-[#d9d9d9]; font-size: 0; - height: 8px; - opacity: 1; - outline: none; - padding: 0; - transition: all 0.5s; - width: 8px; } .ant-carousel.gallery-carousel :deep(.slick-dots li.slick-active div > div) { - @apply bg-brand-500; - opacity: 1; + @apply bg-brand-500 opacity-100; } .ant-carousel.gallery-carousel :deep(.slick-dots li) { @apply !w-auto; } .ant-carousel.gallery-carousel :deep(.slick-prev) { - left: 0; + @apply left-0; } .ant-carousel.gallery-carousel :deep(.slick-next) { - right: 0; + @apply right-0; }