Skip to content

Commit 8c220fc

Browse files
fix(uhk-web): render typing behavior presets tooltip as bullet list
Display the secondary role presets tooltip as a left-aligned bulleted list and widen it to fit the longer entries. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 47471a3 commit 8c220fc

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

packages/uhk-web/src/app/components/device/typing-behavior-page/typing-behavior-page.component.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ <h3>Secondary roles</h3>
3030
</div>
3131
<circle-tooltip class="mt-2 ms-1"
3232
[tooltip]="presetsTooltip"
33-
[width]="380"/>
33+
[width]="450"/>
3434
<ng-template #presetsTooltip>
35-
<ng-container *ngFor="let preset of typingBehaviorPresets; trackBy: trackPresets; let isLast = last">
36-
<p [class.mb-0]="isLast">
37-
<span class="fw-bold">{{ preset.name }}</span> - {{ preset.tooltip }}
38-
</p>
39-
</ng-container>
35+
<ul class="presets-tooltip-list">
36+
<li *ngFor="let preset of typingBehaviorPresets; trackBy: trackPresets">
37+
<span class="fw-bold">{{ preset.name }}</span>: {{ preset.tooltip }}
38+
</li>
39+
</ul>
4040
</ng-template>
4141
</div>
4242
</div>

packages/uhk-web/src/styles/_tooltip.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
.tooltip-inner {
66
border: $tooltip-border-width solid $tooltip-border-color;
77
max-width: var(--tooltip-max-width);
8+
9+
.presets-tooltip-list {
10+
margin: 0;
11+
padding-left: 1.25rem;
12+
text-align: left;
13+
14+
li + li {
15+
margin-top: 0.35rem;
16+
}
17+
}
818
}
919

1020
.tooltip-arrow {

0 commit comments

Comments
 (0)