Skip to content

Commit

Permalink
Fix: only show theme background color in spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nounspaceryan committed Jul 29, 2024
1 parent e4a695d commit b6c36ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
12 changes: 3 additions & 9 deletions src/common/components/templates/Space.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,9 @@ export default function Space({
: LayoutFidgets["grid"];

return (
<>
<div className="user-theme-background w-full h-full">
<CustomHTMLBackground html={config.theme?.properties.backgroundHTML} />
<div
className={
editMode
? "w-full transition-all duration-100 ease-out h-full"
: "w-full transition-all duration-100 ease-out h-full"
}
>
<div className="w-full transition-all duration-100 ease-out h-full">
<div className="h-full flex flex-col">
{!isUndefined(profile) ? (
<div className="z-50 bg-white h-40">{profile}</div>
Expand All @@ -126,6 +120,6 @@ export default function Space({
/>
</div>
</div>
</>
</div>
);
}
5 changes: 1 addition & 4 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ const sidebarLayout = (page: React.ReactElement) => {
return (
<>
<div className="min-h-screen max-w-screen h-screen w-screen">
<div
className="flex w-full h-full"
style={{ background: "var(--user-theme-background)" }}
>
<div className="flex w-full h-full">
<div className="flex mx-auto transition-all duration-100 ease-out z-10">
<Sidebar />
</div>
Expand Down

0 comments on commit b6c36ba

Please sign in to comment.