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
enable font family selector from assets when assets feature is enabled
Oleg Isonen492f5b625e2f
diff --git a/apps/designer/app/designer/features/style-panel/shared/configs.ts b/apps/designer/app/designer/features/style-panel/shared/configs.tsindex cbdf44a614..7364b1717f 100644--- a/apps/designer/app/designer/features/style-panel/shared/configs.ts+++ b/apps/designer/app/designer/features/style-panel/shared/configs.ts@@ -38,6 +38,7 @@ import {RowGapIcon,ColumnGapIcon,} from "@webstudio-is/icons";+import { isFeatureEnabled } from "~/shared/feature-flags";type BaseStyleConfig = {label: string;@@ -90,9 +91,9 @@ const getControl = (property: StyleProperty): Control => {case "placeContent": {return "Empty";}- //case "fontFamily": {- // return "FontFamily";- //}+ case "fontFamily": {+ return isFeatureEnabled("assets") ? "FontFamily" : "Text";+ }}return "Text";