mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 12:07:08 +00:00
chore: lint
This commit is contained in:
@@ -56,14 +56,17 @@ const currentIcon = computed(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NcTooltip class="w-full" placement="right" :arrow="false" :disabled="(!isLabelHidden && !!label) || !tooltipText" :hide-on-click="!hideOnClickDisabled">
|
||||
<NcTooltip
|
||||
class="w-full"
|
||||
placement="right"
|
||||
:arrow="false"
|
||||
:disabled="(!isLabelHidden && !!label) || !tooltipText"
|
||||
:hide-on-click="!hideOnClickDisabled"
|
||||
>
|
||||
<template #title>{{ tooltipText }}</template>
|
||||
|
||||
<div
|
||||
:class="[
|
||||
variant === 'btn' ? 'nc-mini-sidebar-labeled-btn' : 'nc-mini-sidebar-labeled-item',
|
||||
{ active, disabled },
|
||||
]"
|
||||
:class="[variant === 'btn' ? 'nc-mini-sidebar-labeled-btn' : 'nc-mini-sidebar-labeled-item', { active, disabled }]"
|
||||
:data-testid="dataTestid"
|
||||
@click="!disabled && emits('click')"
|
||||
>
|
||||
|
||||
@@ -51,7 +51,13 @@ const themeIcon = computed(
|
||||
</NcTooltip>
|
||||
|
||||
<!-- Mini sidebar mode — parent DashboardMiniSidebarItem handles tooltip -->
|
||||
<div v-else v-e="['c:nocodb:theme']" class="h-4.5 flex items-center justify-center" data-testid="nc-sidebar-theme" @click="toggleTheme">
|
||||
<div
|
||||
v-else
|
||||
v-e="['c:nocodb:theme']"
|
||||
class="h-4.5 flex items-center justify-center"
|
||||
data-testid="nc-sidebar-theme"
|
||||
@click="toggleTheme"
|
||||
>
|
||||
<GeneralIcon
|
||||
:icon="themeIcon"
|
||||
:class="{
|
||||
|
||||
Reference in New Issue
Block a user