Skip to content

Commit

Permalink
Simplify layout of site hub elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias committed Mar 29, 2023
1 parent 9ba7dce commit 1b04605
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
11 changes: 1 addition & 10 deletions packages/edit-site/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,7 @@ export default function Layout() {
}
) }
>
<SiteHub
ref={ hubRef }
className="edit-site-layout__hub"
style={ {
width:
isResizingEnabled && forcedWidth
? forcedWidth - 48
: undefined,
} }
/>
<SiteHub ref={ hubRef } className="edit-site-layout__hub" />

<AnimatePresence initial={ false }>
{ isEditorPage && canvasMode === 'edit' && (
Expand Down
5 changes: 3 additions & 2 deletions packages/edit-site/src/components/site-hub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,15 @@ const SiteHub = forwardRef( ( props, ref ) => {
<AnimatePresence>
{ showLabels && (
<motion.div
initial={ false }
layout
animate={ {
opacity: canvasMode === 'view' ? 1 : 0,
} }
exit={ {
opacity: 0,
} }
layout
class="edit-site-site-hub__site-title"
className="edit-site-site-hub__site-title"
>
{ siteTitle }
</motion.div>
Expand Down

0 comments on commit 1b04605

Please sign in to comment.