Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/playground/components/src/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function SiteManagerIcon({
<rect
x="3"
y="3"
width="6"
width="7"
height="18"
rx="2"
ry="2"
Expand Down
24 changes: 10 additions & 14 deletions packages/playground/website/src/components/browser-chrome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,16 @@ export default function BrowserChrome({
})}
aria-label="Playground toolbar"
>
<div className={css.windowControls}>
<div className={addressBarClass}>
<AddressBar
url={url}
onUpdate={(newUrl) =>
clientInfo?.client.goTo(newUrl)
}
/>
</div>

<div className={css.toolbarButtons}>
<Button
variant="browser-chrome"
aria-label={
Expand All @@ -80,18 +89,7 @@ export default function BrowserChrome({
sidebarActive={siteManagerIsOpen}
/>
</Button>
</div>

<div className={addressBarClass}>
<AddressBar
url={url}
onUpdate={(newUrl) =>
clientInfo?.client.goTo(newUrl)
}
/>
</div>

<div className={css.toolbarButtons}>
{isMobileUi ? (
<>
<Button
Expand All @@ -100,7 +98,6 @@ export default function BrowserChrome({
onClick={onToggle}
aria-expanded={isModalOpen}
style={{
padding: '0 10px',
fill: '#FFF',
alignItems: 'center',
display: 'flex',
Expand Down Expand Up @@ -132,7 +129,6 @@ export default function BrowserChrome({
onClick={onToggle}
aria-expanded={isOpen}
style={{
padding: '0 10px',
fill: '#FFF',
alignItems: 'center',
display: 'flex',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,13 @@ body.is-embedded .fake-window-wrapper {
padding: 0 4px;
}

.window-controls {
display: flex;
}

.toolbar-buttons:empty {
display: none;
}

.toolbar-buttons {
display: flex;
gap: 10px;
gap: 0;
color: #fff;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
.button.button.button.is-browser-chrome {
display: flex;
align-items: center;
justify-content: center;
min-height: 40px;
min-width: 40px;
background: transparent;
Expand Down