refactor(editor): Dark theme improvements (no-changelog) (#7574)
Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ff279ab411
commit
100291e109
@@ -62,7 +62,6 @@ import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
import { useSettingsStore, useUsersStore } from '@/stores/settings.store';
|
||||
import { useCloudPlanStore } from '@/stores/cloudPlan.store';
|
||||
import { useTelemetryStore } from '@/stores/telemetry.store';
|
||||
import { getStyleTokenValue } from '@/utils/htmlUtils';
|
||||
import { dismissBannerPermanently } from '@/api/ui';
|
||||
import type { BannerName } from 'n8n-workflow';
|
||||
|
||||
@@ -412,7 +411,8 @@ export const useUIStore = defineStore(STORES.UI, {
|
||||
};
|
||||
},
|
||||
headerHeight() {
|
||||
return Number(getStyleTokenValue('--header-height'));
|
||||
const style = getComputedStyle(document.body);
|
||||
return Number(style.getPropertyValue('--header-height'));
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user