From 115c9588a2a5f20a0dbdbc5dbb516d89af90b9b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= Date: Thu, 20 Mar 2025 13:58:34 +0100 Subject: [PATCH 1/5] feat: add gallery auto height --- components/AGallery.vue | 34 ++++++++++++++++++++++++++++++++++ components/AModal.vue | 1 + 2 files changed, 35 insertions(+) diff --git a/components/AGallery.vue b/components/AGallery.vue index 2398d1d..015328c 100644 --- a/components/AGallery.vue +++ b/components/AGallery.vue @@ -19,6 +19,7 @@ interface AGalleryProps { title: string; subTitle: string; action: string; + autoHeight: boolean; } const props = withDefaults(defineProps(), { @@ -30,6 +31,7 @@ const props = withDefaults(defineProps(), { title: undefined, subTitle: undefined, action: undefined, + autoHeight: false, }); interface AGalleryEmits { @@ -100,6 +102,9 @@ const mediasAndInspirations = computed((): string[] => { From 21b3dd93a46fe6f5c3a9513e831497e34d0ec321 Mon Sep 17 00:00:00 2001 From: PierreGAMEN Date: Fri, 21 Mar 2025 11:25:37 +0100 Subject: [PATCH 3/5] feat: add decimal --- components/ANumberAnimated.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/ANumberAnimated.vue b/components/ANumberAnimated.vue index 3f9bcdd..a13c841 100644 --- a/components/ANumberAnimated.vue +++ b/components/ANumberAnimated.vue @@ -34,9 +34,10 @@ watch( From 6ee6ef3e1cbf1e20be0e989a09f854265ddef162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= Date: Wed, 26 Mar 2025 09:44:31 +0100 Subject: [PATCH 4/5] feat: update modal and gallery --- components/AGallery.vue | 4 +-- components/AModal.vue | 66 +++++++++++++++++++++++++++-------------- 2 files changed, 46 insertions(+), 24 deletions(-) diff --git a/components/AGallery.vue b/components/AGallery.vue index 015328c..723ed0a 100644 --- a/components/AGallery.vue +++ b/components/AGallery.vue @@ -404,7 +404,7 @@ const mediasAndInspirations = computed((): string[] => { :slotted(img) { height: 100%; width: 100%; - object-fit: cover; + object-fit: contain; } :slotted(video) { @@ -421,7 +421,7 @@ const mediasAndInspirations = computed((): string[] => { img { height: 100%; width: 100%; - object-fit: cover; + object-fit: contain; } video { diff --git a/components/AModal.vue b/components/AModal.vue index 5f1f590..1adb007 100644 --- a/components/AModal.vue +++ b/components/AModal.vue @@ -131,13 +131,15 @@ defineExpose({ 'no-padding': !hasBodyPadding, }" > - - - - - + + @@ -219,9 +228,12 @@ defineExpose({ } .a-card { + position: relative; width: 100%; border-radius: 5px; max-height: 100vh; + background: var(--a-white); + box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.2); > .a-card-body { overflow: auto; @@ -265,6 +277,10 @@ defineExpose({ animation: upScale 0.25s cubic-bezier(0.23, 1, 0.32, 1) forwards; transform-origin: center; + @media screen and (max-width: 768px) { + max-height: 100svh !important; + } + @keyframes upScale { 0% { transform: scale(0.95); @@ -355,6 +371,10 @@ defineExpose({ position: relative; overscroll-behavior: contain; + @media screen and (max-width: 768px) { + max-height: calc(100svh - 141px) !important; + } + .body-container { .a-modal-close { position: absolute; @@ -399,6 +419,8 @@ defineExpose({ // FOOTER .a-card-foot { + display: flex; + gap: 10px; margin: 0; padding: 16px; border-top: 1px solid var(--a-grey-light); @@ -459,8 +481,8 @@ defineExpose({ height: 100%; .a-card-body { - height: 100%; - max-height: 100%; + height: calc(100% - 162px); + max-height: calc(100% - 162px); } } } @@ -576,8 +598,8 @@ defineExpose({ height: 100%; .a-card-body { - height: 100%; - max-height: 100%; + height: calc(100% - 162px); + max-height: calc(100% - 162px); } } } @@ -617,8 +639,8 @@ defineExpose({ height: 100%; .a-card-body { - height: 100%; - max-height: 100%; + height: calc(100% - 162px); + max-height: calc(100% - 162px); } } } From d6902ec1e5d55385796205b2fa376b52b6f1f76e Mon Sep 17 00:00:00 2001 From: PierreGAMEN Date: Fri, 18 Apr 2025 09:49:58 +0200 Subject: [PATCH 5/5] feat: update ACheckbox and ATextarea styles for better accessibility --- components/ACheckbox.vue | 11 +++++++++++ components/ATextarea.vue | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/components/ACheckbox.vue b/components/ACheckbox.vue index a3ec5f0..5b6c884 100644 --- a/components/ACheckbox.vue +++ b/components/ACheckbox.vue @@ -290,4 +290,15 @@ watch( } } } + +.custom-checkbox input:checked:disabled ~ .checkmark-lab { + background-color: var(--a-grey-dark) !important; + + &:after { + display: block; + border-color: var(--a-white) !important; + } +} + + diff --git a/components/ATextarea.vue b/components/ATextarea.vue index 55cadf1..8c04d39 100644 --- a/components/ATextarea.vue +++ b/components/ATextarea.vue @@ -81,6 +81,7 @@ const color = useColor(mainColor); .textarea { font-family: inherit; + background-color: inherit; } &::after { @@ -90,7 +91,7 @@ const color = useColor(mainColor); left: 0; width: 100%; height: 30px; - background: var(--a-white); + background-color: inherit; pointer-events: none; border-radius: 10px; }