Skip to content

Commit a55527d

Browse files
authored
Update @vscode/webview-ui-toolkit to 1.4.0 (#1272)
1 parent 9c706cd commit a55527d

File tree

4 files changed

+62
-40
lines changed

4 files changed

+62
-40
lines changed

package-lock.json

Lines changed: 49 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
"@iconify/react": "^1.1.4",
361361
"@reduxjs/toolkit": "^1.8.6",
362362
"@vscode/codicons": "^0.0.35",
363-
"@vscode/webview-ui-toolkit": "1.2.2",
363+
"@vscode/webview-ui-toolkit": "1.4.0",
364364
"@xmldom/xmldom": "^0.8.3",
365365
"axios": "^1.6.0",
366366
"bootstrap": "^4.6.2",

src/classpath/assets/features/classpathConfiguration/components/JdkRuntime.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ const JdkRuntime = (): JSX.Element => {
5555
className="setting-section-option"
5656
key="add-new-jdk"
5757
value="add-new-jdk"
58+
id="add-new-jdk"
5859
onMouseEnter={() => setOptionDescription("Select a JDK from the file system.")}
5960
onMouseLeave={() => setOptionDescription(activeVmInstallPath + 'asds')}
6061
onClick={() => handleSelectJdk("add-new-jdk")}
6162
>
6263
<div className="setting-section-option-action">
63-
<span className="codicon codicon-folder-opened"></span>
64-
Add a new JDK...
64+
<span className="codicon codicon-folder-opened"/>Add a new JDK...
6565
</div>
6666
</VSCodeOption>
6767
);

src/classpath/assets/style.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,14 @@
5252
&[open][position='below'] .dropdown-above-description {
5353
display: none;
5454
}
55+
5556
&[open][position='above'] .dropdown-below-description {
5657
display: none;
5758
}
59+
60+
&[open][position='above'] #add-new-jdk {
61+
margin: calc(var(--design-unit) * 1px) 0;
62+
}
5863

5964
p {
6065
word-break: break-all;
@@ -65,8 +70,11 @@
6570
.setting-section-option {
6671
padding: 0 4px;
6772
.setting-section-option-action {
68-
display: flex;
69-
align-items: flex-end;
73+
display: flex;
74+
align-items: flex-end;
75+
.codicon {
76+
margin-right: calc(var(--design-unit) * 1px);
77+
}
7078
}
7179
}
7280
}

0 commit comments

Comments
 (0)