Skip to content

Commit b7240d6

Browse files
authored
[Website] Refresh button icons next to the browser bar (#2807)
## Motivation for the change, related issues Refreshes the buttons in the Playground UI. ### Before <img width="1392" height="758" alt="CleanShot 2025-10-22 at 19 24 41@2x" src="https://github.com/user-attachments/assets/7850323b-1237-436c-86bf-6b8ceddc3202" /> ### After <img width="1380" height="1036" alt="CleanShot 2025-10-22 at 19 23 41@2x" src="https://github.com/user-attachments/assets/d7c621a2-2581-4578-80da-8b33195e5ab5" /> cc @fellyph @akirk
1 parent ff9b197 commit b7240d6

File tree

5 files changed

+30
-18
lines changed

5 files changed

+30
-18
lines changed

packages/playground/components/src/icons.tsx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,21 +144,29 @@ export function getLogoDataURL(logo: { mime: string; data: string }): string {
144144
return `data:${logo.mime};base64,${logo.data}`;
145145
}
146146

147-
export function SiteManagerIcon() {
147+
export function SiteManagerIcon({ size = 24 }: { size?: number }) {
148148
return (
149149
<svg
150-
width="14"
151-
height="14"
152-
viewBox="0 0 14 14"
153-
fill="none"
150+
width={size}
151+
height={size}
152+
viewBox="0 0 24 24"
154153
xmlns="http://www.w3.org/2000/svg"
154+
fill="none"
155+
stroke="currentColor"
156+
strokeWidth="2"
157+
strokeLinecap="round"
158+
strokeLinejoin="round"
155159
>
156-
<path
157-
fillRule="evenodd"
158-
clipRule="evenodd"
159-
d="M1.99967 1.58301H4.49967C4.72979 1.58301 4.91634 1.76956 4.91634 1.99967V4.49967C4.91634 4.72979 4.72979 4.91634 4.49967 4.91634H1.99967C1.76956 4.91634 1.58301 4.72979 1.58301 4.49967V1.99967C1.58301 1.76956 1.76956 1.58301 1.99967 1.58301ZM0.333008 1.99967C0.333008 1.0792 1.0792 0.333008 1.99967 0.333008H4.49967C5.42015 0.333008 6.16634 1.0792 6.16634 1.99967V4.49967C6.16634 5.42015 5.42015 6.16634 4.49967 6.16634H1.99967C1.0792 6.16634 0.333008 5.42015 0.333008 4.49967V1.99967ZM9.49967 1.58301H11.9997C12.2298 1.58301 12.4163 1.76956 12.4163 1.99967V4.49967C12.4163 4.72979 12.2298 4.91634 11.9997 4.91634H9.49967C9.26956 4.91634 9.08301 4.72979 9.08301 4.49967V1.99967C9.08301 1.76956 9.26956 1.58301 9.49967 1.58301ZM7.83301 1.99967C7.83301 1.0792 8.5792 0.333008 9.49967 0.333008H11.9997C12.9201 0.333008 13.6663 1.0792 13.6663 1.99967V4.49967C13.6663 5.42015 12.9201 6.16634 11.9997 6.16634H9.49967C8.5792 6.16634 7.83301 5.42015 7.83301 4.49967V1.99967ZM11.9997 9.08301H9.49967C9.26956 9.08301 9.08301 9.26956 9.08301 9.49967V11.9997C9.08301 12.2298 9.26956 12.4163 9.49967 12.4163H11.9997C12.2298 12.4163 12.4163 12.2298 12.4163 11.9997V9.49967C12.4163 9.26956 12.2298 9.08301 11.9997 9.08301ZM9.49967 7.83301C8.5792 7.83301 7.83301 8.5792 7.83301 9.49967V11.9997C7.83301 12.9201 8.5792 13.6663 9.49967 13.6663H11.9997C12.9201 13.6663 13.6663 12.9201 13.6663 11.9997V9.49967C13.6663 8.5792 12.9201 7.83301 11.9997 7.83301H9.49967ZM1.99967 9.08301H4.49967C4.72979 9.08301 4.91634 9.26956 4.91634 9.49967V11.9997C4.91634 12.2298 4.72979 12.4163 4.49967 12.4163H1.99967C1.76956 12.4163 1.58301 12.2298 1.58301 11.9997V9.49967C1.58301 9.26956 1.76956 9.08301 1.99967 9.08301ZM0.333008 9.49967C0.333008 8.5792 1.0792 7.83301 1.99967 7.83301H4.49967C5.42015 7.83301 6.16634 8.5792 6.16634 9.49967V11.9997C6.16634 12.9201 5.42015 13.6663 4.49967 13.6663H1.99967C1.0792 13.6663 0.333008 12.9201 0.333008 11.9997V9.49967Z"
160-
fill="white"
161-
/>
160+
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
161+
<rect
162+
x="3"
163+
y="3"
164+
width="6"
165+
height="18"
166+
rx="2"
167+
ry="2"
168+
fill="currentColor"
169+
></rect>
162170
</svg>
163171
);
164172
}

packages/playground/website/src/components/address-bar/style.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
position: relative;
33
display: flex;
44
transition: opacity 0.5s ease;
5+
width: 100%;
56
}
67

78
.input-container {
89
display: flex;
910
width: 100%;
11+
align-items: center;
1012
}
1113

1214
.submit {

packages/playground/website/src/components/browser-chrome/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,11 @@ export default function BrowserChrome({
6161
<Button
6262
variant="browser-chrome"
6363
aria-label="Open Site Manager"
64-
className={css.openSiteManagerButton}
6564
onClick={() => {
6665
dispatch(setSiteManagerOpen(true));
6766
}}
6867
>
69-
<SiteManagerIcon />
68+
<SiteManagerIcon size={26} />
7069
</Button>
7170
</div>
7271

@@ -94,7 +93,7 @@ export default function BrowserChrome({
9493
display: 'flex',
9594
}}
9695
>
97-
<Icon icon={cog} />
96+
<Icon icon={cog} size={28} />
9897
</Button>
9998
{isModalOpen && (
10099
<Modal
@@ -126,7 +125,7 @@ export default function BrowserChrome({
126125
display: 'flex',
127126
}}
128127
>
129-
<Icon icon={cog} />
128+
<Icon icon={cog} size={28} />
130129
</Button>
131130
)}
132131
renderContent={({ onClose }) => (

packages/playground/website/src/components/browser-chrome/style.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ body.is-embedded .fake-window-wrapper {
7474
}
7575

7676
.address-bar-slot {
77+
display: flex;
7778
flex-grow: 1;
7879
min-width: 200px;
7980
width: 100%;

packages/playground/website/src/components/button/style.module.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
}
2222

2323
.button.button.button.is-browser-chrome {
24-
min-height: 26px;
25-
min-width: 26px;
26-
padding: 0px 15px;
24+
display: flex;
25+
align-items: center;
26+
min-height: 40px;
27+
min-width: 40px;
28+
background: transparent;
2729
}
2830

2931
.button.button.button:not(.is-browser-chrome) {

0 commit comments

Comments
 (0)