Skip to content

Commit

Permalink
[#15991] Implement style for showing kernel id on list view
Browse files Browse the repository at this point in the history
  • Loading branch information
gderocher committed Apr 26, 2024
1 parent 0e273ab commit a113c37
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/running-extension/src/kernels.tsx
Expand Up @@ -331,7 +331,7 @@ namespace Private {
return title.join('\n\n');
}

private get _summary(): string | undefined {
private get _summary(): string {
const children = this.children;
if (children.length === 0) {
return this.trans.__('No sessions connected');
Expand Down
10 changes: 10 additions & 0 deletions packages/running/style/base.css
Expand Up @@ -45,6 +45,16 @@
padding-left: 14px;
}

.jp-mod-kernel-widget .jp-RunningSessions-item-label-kernel-id {
display: none;
}

.jp-mod-running-list-view
.jp-mod-kernel-widget
.jp-RunningSessions-item-label-kernel-id {
display: inline;
}

.jp-RunningSessions-item {
display: flex;
flex-direction: row;
Expand Down

0 comments on commit a113c37

Please sign in to comment.