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: format publishing tooltip properly (#4985)

Bogdan Chadkin8c72bad82d0e
diff --git a/apps/builder/app/builder/features/topbar/domains.tsx b/apps/builder/app/builder/features/topbar/domains.tsx
index 8f301852f1..b3db280988 100644
--- a/apps/builder/app/builder/features/topbar/domains.tsx
+++ b/apps/builder/app/builder/features/topbar/domains.tsx
@@ -80,8 +80,7 @@ export const getPublishStatusAndText = ({
const statusText = (
<>
- {textStart}
- <RelativeTime time={new Date(createdAt)} />
+ {textStart} <RelativeTime time={new Date(createdAt)} />
</>
);
diff --git a/apps/builder/app/builder/features/topbar/publish.tsx b/apps/builder/app/builder/features/topbar/publish.tsx
index 6388839fe9..da02652d84 100644
--- a/apps/builder/app/builder/features/topbar/publish.tsx
+++ b/apps/builder/app/builder/features/topbar/publish.tsx
@@ -127,7 +127,9 @@ const ChangeProjectDomain = ({
}
suffix={
<Grid flow="column" align="center">
- <Tooltip content={error !== undefined ? error : statusText}>
+ <Tooltip
+ content={error !== undefined ? error : <Text>{statusText}</Text>}
+ >
<Flex
align="center"
justify="center"