Skip to content

Commit 700eadb

Browse files
authored
chore: improve copy field border and label behavior & add padding to zoom (#280)
Using hideLabel makes the text field more compact without interfering with the label if its present Co-authored-by: Juan <[email protected]>
1 parent 1762b30 commit 700eadb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

web-editor/src/component/CopyIconTextField.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const CopyIconTextField = ({ value, multiline, row, label, type }) => {
1818
return (
1919
<TextField
2020
disabled
21+
hiddenLabel
2122
label={label}
2223
readOnly
2324
multiline={multiline}
@@ -28,6 +29,7 @@ export const CopyIconTextField = ({ value, multiline, row, label, type }) => {
2829
sx={{ paddingRight: "3%" }}
2930
InputProps={{
3031
disableUnderline: true,
32+
sx: { borderRadius: "8px" },
3133
startAdornment: (
3234
<InputAdornment position="start">
3335
<Tooltip title={copied ? "Copied" : "Copy"} placement={"top"}>

web-editor/src/component/MultipleSelect.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function MultipleSelect({ selected, setSelected, inputLabel, fullSet }) {
1717
const rest = fullSet.filter((item) => !selected.includes(item));
1818

1919
return (
20-
<Box sx={{ paddingTop: "15px" }}>
20+
<Box sx={{ paddingTop: "15px", paddingLeft: "12px" }}>
2121
<FormControl fullWidth>
2222
<InputLabel> {inputLabel} </InputLabel>
2323
<Select

web-editor/src/component/ZoomSlider.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ export const ZoomSlider = ({
2626
};
2727

2828
return (
29-
<Box bgcolor="black">
29+
<Box bgcolor="black" paddingLeft={"12px"}>
3030
<Typography
3131
id="input-slider"
3232
gutterBottom
33-
sx={{ paddingLeft: "28px", paddingTop: "10px" }}
33+
sx={{ paddingLeft: "16px", paddingTop: "10px" }}
3434
>
3535
Zoom level
3636
</Typography>

0 commit comments

Comments
 (0)