refactor(ui): remove mobile-specific grid size controls (#1105)
This commit is contained in:
+2
@@ -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>
|
||||
|
||||
+3
-1
@@ -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>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user