Browse Source
Task/improve style of dense selectors (#7856)
* Improve style of dense selectors
* Update changelog
pull/7849/head^2
Thomas Kaul
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with
24 additions and
20 deletions
-
CHANGELOG.md
-
apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.html
-
apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.scss
-
apps/client/src/styles/theme.scss
-
libs/ui/src/lib/activities-table/activities-table.component.html
-
libs/ui/src/lib/activities-table/activities-table.component.scss
|
|
@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
|
|
|
|
- Improved the style of the activity type filter on the activities page (experimental) |
|
|
|
|
|
- Improved the style of the selector in the benchmark comparator |
|
|
|
|
|
|
|
|
## 3.69.0 - 2026-09-07 |
|
|
## 3.69.0 - 2026-09-07 |
|
|
|
|
|
|
|
|
### Changed |
|
|
### Changed |
|
|
|
|
|
@ -12,7 +12,7 @@ |
|
|
<div class="col-md-6 col-xs-12 d-flex justify-content-end"> |
|
|
<div class="col-md-6 col-xs-12 d-flex justify-content-end"> |
|
|
<mat-form-field |
|
|
<mat-form-field |
|
|
appearance="outline" |
|
|
appearance="outline" |
|
|
class="w-100 without-hint" |
|
|
class="gf-form-field-dense w-100 without-hint" |
|
|
color="accent" |
|
|
color="accent" |
|
|
> |
|
|
> |
|
|
<mat-label i18n>Compare with...</mat-label> |
|
|
<mat-label i18n>Compare with...</mat-label> |
|
|
|
|
|
@ -1,15 +1,6 @@ |
|
|
@use '@angular/material' as mat; |
|
|
|
|
|
|
|
|
|
|
|
:host { |
|
|
:host { |
|
|
display: block; |
|
|
display: block; |
|
|
|
|
|
|
|
|
@include mat.form-field-overrides( |
|
|
|
|
|
( |
|
|
|
|
|
container-height: 2rem, |
|
|
|
|
|
container-vertical-padding: 0.33rem |
|
|
|
|
|
) |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
.chart-container { |
|
|
.chart-container { |
|
|
aspect-ratio: 16 / 9; |
|
|
aspect-ratio: 16 / 9; |
|
|
|
|
|
|
|
|
|
|
|
@ -149,6 +149,14 @@ $gf-typography: ( |
|
|
regular-weight: 400 |
|
|
regular-weight: 400 |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$_dense-form-field-theme: mat.define-theme( |
|
|
|
|
|
( |
|
|
|
|
|
density: ( |
|
|
|
|
|
scale: -4 |
|
|
|
|
|
) |
|
|
|
|
|
) |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
.theme-light { |
|
|
.theme-light { |
|
|
color-scheme: light; |
|
|
color-scheme: light; |
|
|
|
|
|
|
|
|
@ -412,6 +420,10 @@ $gf-typography: ( |
|
|
) |
|
|
) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
.gf-form-field-dense { |
|
|
|
|
|
@include mat.form-field-density($_dense-form-field-theme); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.mat-accent { |
|
|
.mat-accent { |
|
|
@include mat.button-overrides( |
|
|
@include mat.button-overrides( |
|
|
( |
|
|
( |
|
|
|
|
|
@ -3,7 +3,10 @@ |
|
|
> |
|
|
> |
|
|
<div class="d-none d-lg-flex"> |
|
|
<div class="d-none d-lg-flex"> |
|
|
@if (hasPermissionToFilterByType && activityTypeOptions().length > 1) { |
|
|
@if (hasPermissionToFilterByType && activityTypeOptions().length > 1) { |
|
|
<mat-form-field appearance="outline" class="without-hint"> |
|
|
<mat-form-field |
|
|
|
|
|
appearance="outline" |
|
|
|
|
|
class="gf-form-field-dense without-hint" |
|
|
|
|
|
> |
|
|
<mat-label i18n>Type</mat-label> |
|
|
<mat-label i18n>Type</mat-label> |
|
|
<mat-select multiple [formControl]="typesFilter"> |
|
|
<mat-select multiple [formControl]="typesFilter"> |
|
|
@for (activityType of activityTypeOptions(); track activityType.key) { |
|
|
@for (activityType of activityTypeOptions(); track activityType.key) { |
|
|
|
|
|
@ -1,12 +1,3 @@ |
|
|
@use '@angular/material' as mat; |
|
|
|
|
|
|
|
|
|
|
|
:host { |
|
|
:host { |
|
|
display: block; |
|
|
display: block; |
|
|
|
|
|
|
|
|
@include mat.form-field-overrides( |
|
|
|
|
|
( |
|
|
|
|
|
container-height: 2rem, |
|
|
|
|
|
container-vertical-padding: 0.33rem |
|
|
|
|
|
) |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
} |
|
|
|