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: Fix unnecessary separator (#2922)

Oleg Isonen15c653abe517
diff --git a/apps/builder/app/builder/features/project-settings/project-settings.tsx b/apps/builder/app/builder/features/project-settings/project-settings.tsx
index 8640b82af8..f52517d2dd 100644
--- a/apps/builder/app/builder/features/project-settings/project-settings.tsx
+++ b/apps/builder/app/builder/features/project-settings/project-settings.tsx
@@ -37,8 +37,12 @@ const ProjectSettingsView = ({
<MetaSection />
<Separator />
<CompilerSection />
- <Separator />
- {isFeatureEnabled("redirects") && <RedirectSection />}
+ {isFeatureEnabled("redirects") && (
+ <>
+ <Separator />
+ <RedirectSection />
+ </>
+ )}
<div />
</Grid>
</ScrollArea>
diff --git a/apps/builder/app/builder/features/project-settings/redirect-section.tsx b/apps/builder/app/builder/features/project-settings/redirect-section.tsx
index ba1951acd8..575251c204 100644
--- a/apps/builder/app/builder/features/project-settings/redirect-section.tsx
+++ b/apps/builder/app/builder/features/project-settings/redirect-section.tsx
@@ -1,6 +1,5 @@
import {
Grid,
- Separator,
Flex,
InputField,
Button,
@@ -129,7 +128,6 @@ export const RedirectSection = () => {
return (
<>
- <Separator />
<Grid gap={2} css={{ mx: theme.spacing[5], px: theme.spacing[5] }}>
<Text variant="titles">301 Redirects</Text>
<Text color="subtle">