Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: show advanced properties in global root from other breakpoints (#5089)
Bogdan Chadkin1506d962410d
diff --git a/apps/builder/app/builder/features/style-panel/sections/advanced/stores.ts b/apps/builder/app/builder/features/style-panel/sections/advanced/stores.tsindex 2573fd6681..9e28553b26 100644--- a/apps/builder/app/builder/features/style-panel/sections/advanced/stores.ts+++ b/apps/builder/app/builder/features/style-panel/sections/advanced/stores.ts@@ -1,10 +1,11 @@import { computed } from "nanostores";import type { CssProperty } from "@webstudio-is/css-engine";-import { $computedStyleDeclarations } from "../../shared/model";-import { sections } from "../sections";+import { ROOT_INSTANCE_ID } from "@webstudio-is/sdk";import { $settings } from "~/builder/shared/client-settings";+import { $selectedInstance } from "~/shared/awareness";import type { ComputedStyleDecl } from "~/shared/style-object-model";-import { ROOT_INSTANCE_ID } from "@webstudio-is/sdk";+import { $computedStyleDeclarations } from "../../shared/model";+import { sections } from "../sections";// @todo will be fully deleted https://github.com/webstudio-is/webstudio/issues/4871const initialProperties = new Set<CssProperty>([@@ -16,8 +17,8 @@ const initialProperties = new Set<CssProperty>([]);export const $advancedStyleDeclarations = computed(- [$computedStyleDeclarations, $settings],- (computedStyleDeclarations, settings) => {+ [$computedStyleDeclarations, $settings, $selectedInstance],+ (computedStyleDeclarations, settings, selectedInstance) => {const advancedStyles: Array<ComputedStyleDecl> = [];// All properties used by the panels except the advanced panelconst visualProperties = new Set<CssProperty>([]);@@ -31,7 +32,8 @@ export const $advancedStyleDeclarations = computed(// @todo add filters to the UI to allow user decide.if (styleDecl.source.name === "remote" &&- styleDecl.source.instanceId === ROOT_INSTANCE_ID+ styleDecl.source.instanceId === ROOT_INSTANCE_ID &&+ styleDecl.source.instanceId !== selectedInstance?.id) {continue;}