change popup default width to 454px

This commit is contained in:
Tykayn 2022-03-01 11:53:15 +01:00 committed by tykayn
parent 0c8cb9248e
commit 5d3e074c39
3 changed files with 14 additions and 13 deletions

View File

@ -75,8 +75,8 @@
<p-dialog <p-dialog
[modal]="true" [modal]="true"
[(visible)]="display_same_hours_dialog" [(visible)]="display_same_hours_dialog"
[breakpoints]="{ '960px': '75vw' }" [breakpoints]="{ '960px': '454px' }"
[style]="{ width: '50vw' }" [style]="{ width: '454px' }"
[draggable]="false" [draggable]="false"
[showHeader]="false" [showHeader]="false"
[resizable]="false" [resizable]="false"
@ -137,15 +137,16 @@
{{ 'dates.count_time' | translate }} {{ 'dates.count_time' | translate }}
</span> </span>
</div> </div>
<div class="add-time-choice">
<button <button
class="has-text-primary has-no-border is-large-button has-text-left has-background-transparent has-background-plus has-background-icon-left is-filtered-icon-primary"
(click)="pollService.addTime()" (click)="pollService.addTime()"
*ngIf="false == pollService.allowSeveralHours"
class="button is-block is-fullwidth has-text-left has-no-border"
id="add_time_button" id="add_time_button"
> >
<img class="icon" aria-hidden="true" src="assets/icons/plus-circle.svg" /> {{ 'hours.add' | translate }}
{{ 'dates.add_time' | translate }}
</button> </button>
</div>
</section> </section>
</section> </section>
</ng-template> </ng-template>

View File

@ -61,7 +61,7 @@
</div> </div>
</div> </div>
</form> </form>
<p-confirmDialog #cd [style]="{ width: '50vw' }"> <p-confirmDialog #cd [style]="{ width: '454px' }">
<ng-template pTemplate="header"> <ng-template pTemplate="header">
<h3>{{ 'creation.dialog' | translate }}</h3> <h3>{{ 'creation.dialog' | translate }}</h3>
</ng-template> </ng-template>

View File

@ -104,7 +104,7 @@
[modal]="true" [modal]="true"
[(visible)]="display_cancel_dialog" [(visible)]="display_cancel_dialog"
[breakpoints]="{ '960px': '75vw' }" [breakpoints]="{ '960px': '75vw' }"
[style]="{ width: '50vw', 'border-radius': '1rem' }" [style]="{ width: '454px', 'border-radius': '1rem' }"
[styleClass]="'roundToPercentWidth-borders'" [styleClass]="'roundToPercentWidth-borders'"
[draggable]="false" [draggable]="false"
[showHeader]="false" [showHeader]="false"