refactor(ui): remove mobile-specific grid size controls (#1105)

This commit is contained in:
Alex
2026-05-04 17:56:18 +01:00
committed by GitHub
parent 237171ffe4
commit 3f3beaf86b
5 changed files with 58 additions and 36 deletions
@@ -7,11 +7,13 @@
class="browser-grid-option-btn"
[attr.aria-label]="'common.decreaseCardSize' | transloco"
[title]="'common.decreaseCardSize' | transloco"
[disabled]="smallerDisabled()"
(click)="densityChange.emit('smaller')">−</button>
<button
type="button"
class="browser-grid-option-btn"
[attr.aria-label]="'common.increaseCardSize' | transloco"
[title]="'common.increaseCardSize' | transloco"
[disabled]="largerDisabled()"
(click)="densityChange.emit('larger')">+</button>
</div>
@@ -1,4 +1,4 @@
import {Component, output} from '@angular/core';
import {Component, input, output} from '@angular/core';
import {TranslocoPipe} from '@jsverse/transloco';
export type GridDensityDirection = 'smaller' | 'larger';
@@ -10,5 +10,7 @@ export type GridDensityDirection = 'smaller' | 'larger';
templateUrl: './grid-density-buttons.component.html',
})
export class GridDensityButtonsComponent {
readonly smallerDisabled = input(false);
readonly largerDisabled = input(false);
readonly densityChange = output<GridDensityDirection>();
}