Skip to content

Commit

Permalink
feat: improve node label readability
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav committed Aug 15, 2024
1 parent 5e1f4cf commit 633334c
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function openContextMenu(event: MouseEvent) {
top: 100%;
position: absolute;
width: 100%;
min-width: 200px;
min-width: calc(var(--canvas-node--width) * 2);
margin-top: var(--spacing-2xs);
display: flex;
flex-direction: column;
Expand All @@ -223,16 +223,27 @@ function openContextMenu(event: MouseEvent) {
.label {
font-size: var(--font-size-m);
line-height: var(--font-line-height-compact);
text-align: center;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
overflow-wrap: anywhere;
font-weight: var(--font-weight-bold);
line-height: var(--font-line-height-compact);
}
.subtitle {
width: 100%;
text-align: center;
color: var(--color-text-light);
font-size: var(--font-size-xs);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: var(--font-line-height-compact);
font-weight: 400;
}
.statusIcons {
Expand Down

0 comments on commit 633334c

Please sign in to comment.