Skip to content

Commit 83061be

Browse files
refactor(site): add minor improvements to the port button (#9028)
1 parent 76ad116 commit 83061be

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

site/src/components/Resources/PortForwardButton.tsx

+8-7
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ export const PortForwardButton: React.FC<PortForwardButtonProps> = (props) => {
5858
sx={{
5959
fontSize: 12,
6060
fontWeight: 500,
61-
height: 16,
62-
padding: (theme) => theme.spacing(0, 1),
63-
borderRadius: 7,
61+
height: 20,
62+
minWidth: 20,
63+
padding: (theme) => theme.spacing(0, 0.5),
64+
borderRadius: "50%",
6465
display: "flex",
6566
alignItems: "center",
6667
justifyContent: "center",
@@ -82,11 +83,11 @@ export const PortForwardButton: React.FC<PortForwardButtonProps> = (props) => {
8283
onClose={onClose}
8384
anchorOrigin={{
8485
vertical: "bottom",
85-
horizontal: "left",
86+
horizontal: "right",
8687
}}
8788
transformOrigin={{
8889
vertical: "top",
89-
horizontal: "left",
90+
horizontal: "right",
9091
}}
9192
>
9293
<PortForwardPopoverView {...props} ports={listeningPorts?.ports} />
@@ -210,7 +211,7 @@ export const PortForwardPopoverView: React.FC<
210211
max={65535}
211212
required
212213
sx={{
213-
fontSize: 12,
214+
fontSize: 14,
214215
height: 34,
215216
p: (theme) => theme.spacing(0, 1.5),
216217
background: "none",
@@ -248,7 +249,7 @@ const useStyles = makeStyles((theme) => ({
248249
padding: 0,
249250
width: theme.spacing(38),
250251
color: theme.palette.text.secondary,
251-
marginTop: theme.spacing(0.25),
252+
marginTop: theme.spacing(0.5),
252253
},
253254

254255
openUrlButton: {

site/src/theme/theme.ts

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ dark = createTheme(dark, {
9292
input:-webkit-autofill:active {
9393
-webkit-box-shadow: 0 0 0 100px ${dark.palette.background.default} inset !important;
9494
}
95+
96+
::placeholder {
97+
color: ${dark.palette.text.disabled};
98+
}
9599
`,
96100
},
97101
MuiAvatar: {

0 commit comments

Comments
 (0)