Skip to content

Commit 1d9d873

Browse files
authored
fix: Edit button looks strange (#649)
1 parent f865682 commit 1d9d873

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/formatter-settings/assets/features/formatterSettings/FormatterSettingView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const FormatterSettingsView = (): JSX.Element => {
9797
<Container className="root d-flex flex-column">
9898
<Row className="setting-header">
9999
<Col><h2 className="mb-0">{title}</h2></Col>
100-
<Col className="flex-grow-0">{readOnly && (<div><a className="btn btn-primary float-right" role="button" title="Download and edit profile" onClick={() => onWillDownloadAndUse()}>Edit</a></div>)}</Col>
100+
<Col className="flex-grow-0">{readOnly && (<div><a className="btn btn-primary float-right edit-button" role="button" title="Download and edit profile" onClick={() => onWillDownloadAndUse()}>Download and Edit</a></div>)}</Col>
101101
</Row>
102102
<Row className="flex-grow-1 d-flex flex-nowrap view-body">
103103
<Col className="flex-grow-0">{naviBar}</Col>

src/formatter-settings/assets/style.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $enable-rounded: false;
33
.root {
44
overflow: hidden;
55
max-width: 1200px !important;
6-
min-width: 530px !important;
6+
min-width: 600px !important;
77
min-height: 220px !important;
88
height: 100vh !important;
99
}
@@ -285,4 +285,14 @@ body.vscode-high-contrast {
285285
display: inline-block;
286286
}
287287

288+
.edit-button {
289+
background-color: var(--vscode-button-background) !important;
290+
padding: 4px !important;
291+
white-space: nowrap !important;
292+
border: 1px solid var(--vscode-settings-dropdownBorder) !important;
293+
&:hover {
294+
background-color: var(--vscode-button-hoverBackground) !important;
295+
}
296+
}
297+
288298
@import "../../assets/vscode.scss";

0 commit comments

Comments
 (0)