Browse Source

fix: icon correction and language menu shadow

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5382/head
Pranav C 2 years ago
parent
commit
fb24033658
  1. 2
      packages/nc-gui/components/smartsheet/toolbar/ShareView.vue
  2. 19
      packages/nc-gui/components/webhook/Editor.vue
  3. 10
      packages/nc-gui/pages/[projectType]/[projectId]/index.vue
  4. 2
      packages/nc-gui/utils/iconUtils.ts

2
packages/nc-gui/components/smartsheet/toolbar/ShareView.vue

@ -272,7 +272,7 @@ const copyIframeCode = async () => {
>
<div class="flex-1 h-min text-xs text-gray-500">{{ sharedViewUrl }}</div>
<a v-e="['c:view:share:open-url']" :href="sharedViewUrl" target="_blank">
<a v-e="['c:view:share:open-url']" :href="sharedViewUrl" target="_blank" class="flex items-center !no-underline">
<component :is="iconMap.share" class="text-sm text-gray-500" />
</a>

19
packages/nc-gui/components/webhook/Editor.vue

@ -697,15 +697,16 @@ onMounted(async () => {
<a-row>
<a-col :span="24">
<div class="text-gray-600">
<em>Use context variable <strong>data</strong> to refer the record under consideration</em>
<a-tooltip bottom>
<template #title>
<span> <strong>data</strong> : Row data <br /> </span>
</template>
<component :is="iconMap.info" class="ml-2" />
</a-tooltip>
<div class="flex items-center=">
<em>Use context variable <strong>data</strong> to refer the record under consideration</em>
<a-tooltip bottom>
<template #title>
<span> <strong>data</strong> : Row data <br /> </span>
</template>
<component :is="iconMap.info" class="ml-2" />
</a-tooltip>
</div>
<div class="mt-3">
<a href="https://docs.nocodb.com/developer-resources/webhooks/" target="_blank">
<!-- Document Reference -->

10
packages/nc-gui/pages/[projectType]/[projectId]/index.vue

@ -509,11 +509,7 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
</a-sub-menu>
</template>
<!-- Language -->
<a-sub-menu
key="language"
class="lang-menu !py-0"
popup-class-name="scrollbar-thin-dull min-w-50 max-h-90vh !overflow-auto"
>
<a-sub-menu key="language" class="lang-menu !py-0">
<template #title>
<div class="nc-project-menu-item group">
<component :is="iconMap.translate" class="group-hover:text-accent nc-language" />
@ -529,7 +525,9 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
<template #expandIcon></template>
<LazyGeneralLanguageMenu />
<div class="scrollbar-thin-dull min-w-50 max-h-90vh">
<LazyGeneralLanguageMenu />
</div>
</a-sub-menu>
<!-- Account -->

2
packages/nc-gui/utils/iconUtils.ts

@ -177,7 +177,7 @@ import NcIconsRowHeightExtraTall from '~icons/nc-icons/row-height-extra-tall'
} as const */
export const iconMap = {
info: h('span', { class: 'material-symbols-outlined' }, 'info_outline'),
info: h('span', { class: 'material-symbols-outlined' }, 'info'),
loading: h('span', { class: 'material-symbols-outlined' }, 'autorenew'),
arrowCollapse: h('span', { class: 'material-symbols-outlined' }, 'keyboard_arrow_up'),
markerAlert: h('span', { class: 'material-symbols-outlined' }, 'warning'),

Loading…
Cancel
Save