Browse Source

fix(gui): icon nd table name alignment correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4630/head
Pranav C 2 years ago
parent
commit
d2ec2fbaf1
  1. 5
      packages/nc-gui/components/dashboard/TreeView.vue

5
packages/nc-gui/components/dashboard/TreeView.vue

@ -577,10 +577,11 @@ const setIcon = async (icon: string, table: TableType) => {
trigger="click" trigger="click"
destroy-popup-on-hide destroy-popup-on-hide
@click.stop @click.stop
class="flex items-center"
> >
<div @click.stop> <div @click.stop class="flex items-center">
<component :is="isUIAllowed('tableIconCustomisation') ? Tooltip : 'div'"> <component :is="isUIAllowed('tableIconCustomisation') ? Tooltip : 'div'">
<span v-if="table.meta?.icon" :key="table.meta?.icon" class="nc-table-icon"> <span v-if="table.meta?.icon" :key="table.meta?.icon" class="nc-table-icon flex items-center">
<Icon <Icon
:key="table.meta?.icon" :key="table.meta?.icon"
:data-testid="`nc-icon-${table.meta?.icon}`" :data-testid="`nc-icon-${table.meta?.icon}`"

Loading…
Cancel
Save