Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 438aa3d

Browse files
committed
Fixes for UI issues (#11130)
1 parent c8fc5a5 commit 438aa3d

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed

news/2 Fixes/10464.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make spacing of icons on notebook toolbars match spacing on other VS code toolbars.

news/2 Fixes/10465.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make jupyter server status centered in the UI and use the same font as the rest of VS code.

src/datascience-ui/interactive-common/common.css

+10-5
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,15 @@ body, html {
470470
}
471471

472472
.kernel-status {
473-
margin-top: 2px;
474-
flex: 1;
475473
display: flex;
476474
margin-left: auto;
477475
}
478476

479477
.kernel-status-section {
480-
padding: 2px 5px 2px 5px;
481-
flex: 1;
478+
padding: 0px 5px;
479+
align-self: center;
480+
margin-top: 1px;
481+
margin-bottom: 2px;
482482
}
483483

484484
.kernel-status-section-hoverable:hover {
@@ -514,6 +514,8 @@ body, html {
514514
.kernel-status-icon {
515515
width: 16px;
516516
height: 0px;
517+
padding: 1px;
518+
margin-top: 2px;
517519
}
518520

519521
.image-button-image {
@@ -529,7 +531,10 @@ body, html {
529531
}
530532

531533
.toolbar-menu-bar .image-button {
532-
margin-right: 12px;
534+
margin-top: 8px;
535+
margin-bottom: 9px;
536+
margin-left: 7px;
537+
margin-right: 7px;
533538
}
534539

535540
.image-button:focus {

src/datascience-ui/interactive-common/kernelSelection.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export class KernelSelection extends React.Component<IKernelSelectionProps> {
3434
4; // plus 4 for the icon
3535
const displayNameTextSize = this.props.kernel.displayName.length + this.props.kernel.jupyterServerStatus.length;
3636
const dynamicFont: React.CSSProperties = {
37-
fontSize: this.props.font.size > 2 ? this.props.font.size - 2 : this.props.font.size,
38-
fontFamily: this.props.font.family,
37+
fontSize: 'var(--vscode-font-size)', // Use the same font and size as the menu
38+
fontFamily: 'var(--vscode-font-family)',
3939
maxWidth: this.getMaxWidth(serverTextSize + displayNameTextSize + 5) // plus 5 for the line and margins
4040
};
4141
const serverTextWidth: React.CSSProperties = {

src/datascience-ui/native-editor/nativeEditor.less

+4-2
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@
284284
}
285285

286286
.native-button {
287-
margin-top: 3px;
288287
background: transparent;
289288
z-index: 10;
290289
}
@@ -488,5 +487,8 @@ collapse-bar controls-div [cell-input, cell-output, markdown-cell-
488487
}
489488

490489
.native-editor-celltoolbar-middle .image-button {
491-
margin-right: 8px;
490+
margin-right: 3px;
491+
margin-top: 4px;
492+
margin-bottom: 4px;
493+
margin-left: 3px;
492494
}

0 commit comments

Comments
 (0)