-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add column count to table tooltip (#1382)
- Adds the "Number of Columns" value to the tooltip. - Also converted to css-grid so things would line up nicely
- Loading branch information
Showing
4 changed files
with
51 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 33 additions & 9 deletions
42
packages/dashboard-core-plugins/src/panels/WidgetPanelTooltip.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,47 @@ | ||
@import '@deephaven/components/scss/custom.scss'; | ||
|
||
$tooltip-container-width: 300px; | ||
$tooltip-title-width: 110px; | ||
|
||
.tab-tooltip-container { | ||
padding: 5px 15px; | ||
.tab-tooltip-grid-container { | ||
display: grid; | ||
grid-template-columns: auto 1fr; | ||
align-items: first baseline; | ||
max-width: $tooltip-container-width; | ||
text-align: left; | ||
|
||
.tab-tooltip-title { | ||
min-width: $tooltip-title-width; | ||
font-weight: 700; | ||
} | ||
|
||
.tab-tooltip-name-wrapper { | ||
display: flex; | ||
flex-wrap: nowrap; | ||
align-items: first baseline; | ||
gap: $spacer-1; | ||
} | ||
|
||
.tab-tooltip-name { | ||
max-width: $tooltip-container-width - $tooltip-title-width; | ||
word-break: break-word; | ||
padding-left: 5px; | ||
} | ||
|
||
.tab-tooltip-copy { | ||
margin-left: 2px; | ||
margin-top: -4px; | ||
hr.tab-tooltip-divider { | ||
grid-column: span 2; | ||
width: 100%; | ||
margin: $spacer-1 0; | ||
border-color: $gray-500; | ||
} | ||
|
||
.tab-tooltip-description { | ||
grid-column: span 2; | ||
color: $text-muted; | ||
padding-bottom: $spacer-1; | ||
} | ||
|
||
.tab-tooltip-statistic-value { | ||
font-feature-settings: 'tnum'; | ||
text-align: right; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters