Skip to content

Commit

Permalink
feat(UI): Cross validation report primary results responsivness (#1165)
Browse files Browse the repository at this point in the history
Closes #1165

Cross validation report primary results are now more responsive.

preview:


https://github.com/user-attachments/assets/94dd9e35-7abf-4c41-a86c-59a2adcbd821
  • Loading branch information
rouk1 authored Jan 20, 2025
1 parent 5cb9468 commit 1f7ec67
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion skore-ui/src/components/CrossValidationReportResults.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function isNameTooltipEnabled(index: number) {
border-bottom: solid var(--stroke-width-md) var(--color-stroke-background-primary);
background-color: var(--color-stroke-background-primary);
gap: 1px;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
grid-template-columns: repeat(var(--nb-scalar-columns, 2), 1fr);
&:last-child {
border-right: none;
Expand Down Expand Up @@ -202,8 +202,11 @@ function isNameTooltipEnabled(index: number) {
padding: var(--spacing-16) var(--spacing-10);
& .name {
overflow: hidden;
color: var(--color-text-primary);
font-size: var(--font-size-sm);
text-overflow: ellipsis;
white-space: nowrap;
& .icon {
color: var(--color-text-branding);
Expand All @@ -212,8 +215,15 @@ function isNameTooltipEnabled(index: number) {
}
& .dropdown {
flex: 0 1 40%;
& button {
padding: var(--spacing-6) var(--spacing-10);
& .label {
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
Expand Down Expand Up @@ -301,4 +311,16 @@ function isNameTooltipEnabled(index: number) {
}
}
}
@media screen and (width >= 801px) {
.cross-validation-report-result {
--nb-scalar-columns: 3;
}
}
@media screen and (width >= 1025px) {
.cross-validation-report-result {
--nb-scalar-columns: 5;
}
}
</style>

0 comments on commit 1f7ec67

Please sign in to comment.