Skip to content

Commit eedbb65

Browse files
committed
fix: give more space for provider labels to fit on one line
Reduces the font size of the provider labels so they don't wrap to the next line as often.
1 parent 53c3144 commit eedbb65

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

report-app/src/app/pages/report-list/report-list.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,17 @@
6767
<div class="run-meta">
6868
<provider-label
6969
[id]="group.model"
70-
[label]="group.model"/>
70+
[label]="group.model"
71+
size="small"/>
7172
<provider-label
7273
[id]="group.framework.fullStackFramework.id"
73-
[label]="group.framework.fullStackFramework.displayName"/>
74+
[label]="group.framework.fullStackFramework.displayName"
75+
size="small"/>
7476
@if (group.runner) {
7577
<provider-label
7678
[id]="group.runner.id"
77-
[label]="group.runner.displayName"/>
79+
[label]="group.runner.displayName"
80+
size="small"/>
7881
}
7982
</div>
8083
<stacked-bar-chart

report-app/src/app/pages/report-viewer/report-viewer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ <h5>
343343
{{ result.score.totalPoints }} /
344344
{{ result.score.maxOverallPoints }} points ({{
345345
totalPercent
346-
}})
346+
}}%)
347347
</span>
348348
</div>
349349
</div>

report-app/src/app/shared/provider-label.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ const exactMatches: Record<string, string> = {
1717
display: inline-flex;
1818
align-items: center;
1919
gap: 0.5rem;
20+
font-size: 1rem;
21+
}
22+
23+
:host(.small) {
24+
font-size: 0.75rem;
2025
}
2126
2227
.logo {
@@ -39,11 +44,14 @@ const exactMatches: Record<string, string> = {
3944
`,
4045
host: {
4146
'[class]': 'id()',
47+
'[class.small]': 'size() === "small"',
4248
},
4349
})
4450
export class ProviderLabel {
4551
readonly id = input<string>();
4652
readonly label = input.required<string>();
53+
readonly size = input<'small' | 'medium'>('medium');
54+
4755
protected logo = computed(() => {
4856
const id = this.id();
4957

0 commit comments

Comments
 (0)