Skip to content

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.

fix: Remaining styling fixes for box shadow and backgrounds (#2818)

Oleg Isonenafa218ce30a3
diff --git a/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-thumbnail.tsx b/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-thumbnail.tsx
index 1ef602dfff..65b4e26cbf 100644
--- a/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-thumbnail.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-thumbnail.tsx
@@ -15,6 +15,7 @@ import { toPascalCase } from "../../shared/keyword-utils";
const Thumbnail = styled("div", {
borderRadius: 2,
+ borderWidth: 0,
width: theme.spacing[10],
height: theme.spacing[10],
});
diff --git a/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.tsx b/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.tsx
index 0b87d689ae..58b182d85d 100644
--- a/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.tsx
@@ -230,7 +230,7 @@ export const BackgroundsSection = (props: RenderCategoryProps) => {
>
<Flex gap={1} direction="column">
<CssValueListArrowFocus dragItemId={dragItemId}>
- <Flex gap={1} direction="column" ref={sortableRefCallback}>
+ <Flex direction="column" ref={sortableRefCallback}>
{sortableItems.map((layer, index) => (
<Layer
id={layer.id}
diff --git a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsx b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsx
index 8316f71c7d..fcdb40380b 100644
--- a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsx
@@ -95,7 +95,7 @@ export const Layer = (props: LayerProps) => {
/>
</>
}
- ></CssValueListItem>
+ />
</FloatingPanel>
);
};
diff --git a/apps/builder/app/builder/features/style-panel/shared/color-thumb.tsx b/apps/builder/app/builder/features/style-panel/shared/color-thumb.tsx
index 82843d4f16..6f71270061 100644
--- a/apps/builder/app/builder/features/style-panel/shared/color-thumb.tsx
+++ b/apps/builder/app/builder/features/style-panel/shared/color-thumb.tsx
@@ -38,7 +38,7 @@ const style = css({
height: theme.spacing[10],
backgroundBlendMode: "difference",
borderRadius: 2,
- borderStyle: "solid",
+ borderWidth: 0,
});
export const ColorThumb = forwardRef<