🐛 deduplicate buttons to add a date

This commit is contained in:
Tykayn 2022-02-04 13:44:59 +01:00 committed by tykayn
parent 217d9a97c7
commit d9042c1993
3 changed files with 9 additions and 10 deletions

View File

@ -50,13 +50,12 @@
</div> </div>
</div> </div>
</div> </div>
<div class="add_date"> </div>
<!-- ajouter une date--> <div class="add_date">
<button class="button is-primary" (click)="addChoice()"> <!-- ajouter une date-->
<i class="fa fa-plus"></i> <button class="button is-primary is-fullwidth" (click)="addChoice()">
{{ 'dates.add' | translate }} {{ 'dates.add' | translate }}
</button> </button>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -23,7 +23,6 @@
.button { .button {
min-width: 9ch; min-width: 9ch;
margin-left: -1rem;
} }
.icon { .icon {
@ -94,9 +93,11 @@
.delete-date { .delete-date {
color: $primary_color; color: $primary_color;
border: 0; border: 0;
border-radius: 0.25rem;
background: transparent; background: transparent;
text-align: left; text-align: left;
margin-right: 0; margin-right: 0;
margin-left: -2rem;
.fa, .fa,
.icon { .icon {
@ -128,6 +129,6 @@
line-height: 16px; line-height: 16px;
} }
.add_date { .add_date {
margin-left: 1rem; margin-top: 2rem;
} }
} }

View File

@ -12,7 +12,6 @@
</span> </span>
<span *ngIf="!pollService.mode_calendar"> <span *ngIf="!pollService.mode_calendar">
{{ 'dates.datepicker_input' | translate }} {{ 'dates.datepicker_input' | translate }}
<i class="fa fa-calendar-o"></i>
</span> </span>
</button> </button>