Skip to content

Commit 1c11a2f

Browse files
committed
fix: enhance styling for image comparison component with dark mode support
1 parent 9f5000b commit 1c11a2f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

custom/ImageCompare.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<!-- Popup Overlay -->
33
<div class="fixed inset-0 z-40 flex items-center justify-center bg-black/50" @click.self="closePopup">
4-
<div class="image-compare-container max-w-4xl max-h-[90vh] overflow-y-auto rounded-lg">
4+
<div class="image-compare-container border-white dark:border-black max-w-4xl max-h-[90vh] overflow-y-auto rounded-lg bg-white dark:bg-gray-800">
55
<!-- Close Button -->
66
<div class="flex justify-end mb-4">
77
<button type="button"
@@ -14,8 +14,8 @@
1414
</button>
1515
</div>
1616
<div class="flex gap-4 items-start justify-between">
17-
<h3 class="text-sm font-medium text-gray-700 mb-2">{{ $t('Old Image') }}</h3>
18-
<h3 class="text-sm font-medium text-gray-700 mb-2">{{ $t('New Image') }}</h3>
17+
<h3 class="text-sm font-medium text-gray-700 dark:text-white mb-2">{{ $t('Old Image') }}</h3>
18+
<h3 class="text-sm font-medium text-gray-700 dark:text-white mb-2">{{ $t('New Image') }}</h3>
1919
</div>
2020
<div class="flex gap-4 items-center">
2121
<!-- Old Image -->
@@ -36,8 +36,8 @@
3636

3737
<!-- Comparison Arrow -->
3838
<div class="flex items-center justify-center">
39-
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center">
40-
<svg class="w-4 h-4 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
39+
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center dark:bg-gray-500">
40+
<svg class="w-4 h-4 text-blue-600 dark:text-black" fill="none" stroke="currentColor" viewBox="0 0 24 24">
4141
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
4242
</svg>
4343
</div>
@@ -181,9 +181,9 @@ body.medium-zoom--opened aside {
181181
<style scoped>
182182
.image-compare-container {
183183
padding: 1rem;
184-
background-color: white;
184+
/* background-color: white; */
185185
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
186-
border: 1px solid #e5e7eb;
186+
/* border: 1px solid #e5e7eb; */
187187
}
188188
189189
.fade-enter-active, .fade-leave-active {

0 commit comments

Comments
 (0)