chore: Fix padding issue

This commit is contained in:
iamsivin
2025-05-09 00:15:25 +05:30
parent 9fafd37e3b
commit bfec3b066f
4 changed files with 15 additions and 4 deletions
+11
View File
@@ -84,6 +84,12 @@ export default {
}
},
},
isRTL: {
immediate: true,
handler() {
this.setElementDir(this.isRTL ? 'rtl' : 'ltr');
},
},
},
mounted() {
this.initializeColorTheme();
@@ -96,6 +102,11 @@ export default {
}
},
methods: {
setElementDir(dir) {
// Set dir on document and body
document.documentElement.dir = dir;
document.body.dir = dir;
},
initializeColorTheme() {
setColorTheme(window.matchMedia('(prefers-color-scheme: dark)').matches);
},
@@ -83,7 +83,7 @@ const targetInboxLabel = computed(() => {
<DropdownMenu
v-if="contactableInboxesList?.length > 0 && showInboxesDropdown"
:menu-items="contactableInboxesList"
class="left-0 z-[100] top-8 overflow-y-auto max-h-60 w-fit max-w-sm dark:!outline-n-slate-5"
class="ltr:left-0 rtl:right-0 z-[100] top-8 overflow-y-auto max-h-60 w-fit max-w-sm dark:!outline-n-slate-5"
@action="emit('handleInboxAction', $event)"
/>
</div>
@@ -230,7 +230,7 @@ const handleBlur = e => emit('blur', e);
v-if="showDropdownMenu"
:menu-items="filteredMenuItems"
:is-searching="isLoading"
class="left-0 z-[100] top-8 overflow-y-auto max-h-60 w-[inherit] max-w-md dark:!outline-n-slate-5"
class="ltr:left-0 rtl:right-0 z-[100] top-8 overflow-y-auto max-h-60 w-[inherit] max-w-md dark:!outline-n-slate-5"
@action="handleDropdownAction"
/>
</div>