1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

Let switches grow if text is long. fixes #577

This commit is contained in:
Patrik J. Braun 2023-01-08 13:58:26 +01:00
parent 30383d56ba
commit 83ad8534ae
6 changed files with 10 additions and 20 deletions

View File

@ -71,8 +71,7 @@
switch-on-text="always"
i18n-switch-off-text
i18n-switch-on-text
[switch-handle-width]="100"
[switch-label-width]="20"
[switch-label-width]="30"
[(ngModel)]="lightboxService.captionAlwaysOn">
</bSwitch>
</div>
@ -89,8 +88,7 @@
switch-on-text="always"
i18n-switch-off-text
i18n-switch-on-text
[switch-handle-width]="100"
[switch-label-width]="20"
[switch-label-width]="30"
[(ngModel)]="lightboxService.facesAlwaysOn">
</bSwitch>
</div>
@ -109,8 +107,7 @@
switch-on-text="loop"
i18n-switch-off-text
i18n-switch-on-text
[switch-handle-width]="100"
[switch-label-width]="20"
[switch-label-width]="30"
[(ngModel)]="lightboxService.loopVideos">
</bSwitch>
</div>

View File

@ -211,8 +211,7 @@
switch-on-text="Landscape"
i18n-switch-off-text
i18n-switch-on-text
[switch-handle-width]="100"
[switch-label-width]="20"
[switch-label-width]="30"
(ngModelChange)="onChange()"
[(ngModel)]="AsOrientationQuery.landscape">
</bSwitch>

View File

@ -62,8 +62,7 @@
[switch-inverse]="true"
[switch-off-text]="text.No"
[switch-on-text]="text.Yes"
[switch-handle-width]="100"
[switch-label-width]="20"
[switch-label-width]="30"
(change)="update()"
[(ngModel)]="input.includeSubfolders">
</bSwitch>

View File

@ -66,13 +66,11 @@
switch-on-text="Enabled"
i18n-switch-off-text
i18n-switch-on-text
[switch-handle-width]="100"
[switch-label-width]="20"
[switch-label-width]="30"
(ngModelChange)="onChange($event)"
[(ngModel)]="state.value">
</bSwitch>
<app-settings-workflow
class="w-100"
*ngSwitchCase="'JobScheduleConfig'"

View File

@ -14,8 +14,7 @@
i18n-switch-off-text
i18n-switch-on-text
[switch-disabled]="inProgress"
[switch-handle-width]="100"
[switch-label-width]="20"
[switch-label-width]="30"
[(ngModel)]="states.value.enabled">
</bSwitch>
</div>

View File

@ -131,8 +131,7 @@
switch-off-text="Disabled"
switch-on-text="Enabled"
i18n-switch-off-text i18n-switch-on-text
[switch-handle-width]="100"
[switch-label-width]="20"
[switch-label-width]="30"
(ngModelChange)="onChange($event)"
[(ngModel)]="schedule.allowParallelRun">
</bSwitch>
@ -165,8 +164,7 @@
switch-off-text="Disabled"
switch-on-text="Enabled"
i18n-switch-off-text i18n-switch-on-text
[switch-handle-width]="100"
[switch-label-width]="20"
[switch-label-width]="30"
(ngModelChange)="onChange($event)"
[(ngModel)]="schedule.config[configEntry.id]">
</bSwitch>