Browse Source

fix : fixed margin for language select options

pull/7181/head
musharaf-nocodb 12 months ago
parent
commit
04d364f31d
  1. 4
      packages/nc-gui/components/general/language/Menu.vue
  2. 2
      packages/nc-gui/components/general/language/index.vue

4
packages/nc-gui/components/general/language/Menu.vue

@ -21,7 +21,7 @@ async function changeLanguage(lang: string) {
</script> </script>
<template> <template>
<a-menu-item class="mt-1 group"> <a-menu-item class="group rounded-md !my-0.5">
<a <a
href="https://docs.nocodb.com/engineering/translation/#how-to-contribute--for-community-members" href="https://docs.nocodb.com/engineering/translation/#how-to-contribute--for-community-members"
target="_blank" target="_blank"
@ -36,7 +36,7 @@ async function changeLanguage(lang: string) {
v-for="[key, lang] of languages" v-for="[key, lang] of languages"
:key="key" :key="key"
:class="key === locale ? '!bg-primary bg-opacity-10 text-primary' : ''" :class="key === locale ? '!bg-primary bg-opacity-10 text-primary' : ''"
class="group rounded-md" class="group rounded-md !my-0.5"
:value="key" :value="key"
@click="changeLanguage(key)" @click="changeLanguage(key)"
> >

2
packages/nc-gui/components/general/language/index.vue

@ -10,7 +10,7 @@
<template #overlay> <template #overlay>
<a-menu class="nc-scrollbar-dark-md min-w-50 max-h-90vh overflow-auto !p-1 m-1 rounded-md border-1 border-gray-200"> <a-menu class="nc-scrollbar-dark-md min-w-50 max-h-90vh overflow-auto !p-1 m-1 rounded-md border-1 border-gray-200">
<GeneralLanguageMenu /> <div class="m-1.5"><GeneralLanguageMenu /></div>
</a-menu> </a-menu>
</template> </template>
</a-dropdown> </a-dropdown>

Loading…
Cancel
Save