@@ -53,6 +53,7 @@ import {
5353 : ''
5454 "
5555 [hide_confirm]="true"
56+ [full_width]="view !== 'form'"
5657 >
5758 <div>
5859 <div
@@ -111,7 +112,7 @@ import {
111112 {
112113 key: 'actions',
113114 name: ' ',
114- size: '11 .5rem',
115+ size: '5 .5rem',
115116 content: actions_template,
116117 },
117118 ]"
@@ -161,57 +162,66 @@ import {
161162 </ng-template>
162163 <ng-template #actions_template let-row="row">
163164 <div
164- class="mx-auto flex w-full items-center space-x-2 px-2 "
165+ class="mx-auto flex w-full flex-col items-center justify-center gap-1 p-1 "
165166 >
166- <button
167- icon
168- matRipple
169- (click)="editRuleset(row)"
170- [matTooltip]="
171- 'APP.CONCIERGE.BOOKING_RULESET_EDIT'
172- | translate
173- "
174- >
175- <icon>edit</icon>
176- </button>
177- <button
178- icon
179- matRipple
180- (click)="updateRulesetPriority(row, -1)"
181- [matTooltip]="
182- 'APP.CONCIERGE.BOOKING_RULESET_PRIORITY_UP'
183- | translate
184- "
185- >
186- <icon>arrow_upward</icon>
187- </button>
188- <button
189- icon
190- matRipple
191- (click)="updateRulesetPriority(row, 1)"
192- [matTooltip]="
193- 'APP.CONCIERGE.BOOKING_RULESET_PRIORITY_DOWN'
194- | translate
195- "
196- >
197- <icon>arrow_downward</icon>
198- </button>
199- <button
200- icon
201- matRipple
202- (click)="removeRuleset(row)"
203- [matTooltip]="
204- 'APP.CONCIERGE.BOOKING_RULESET_REMOVE'
205- | translate
206- "
207- >
208- <icon class="text-error">delete</icon>
209- </button>
167+ <div class="flex items-center gap-1">
168+ <button
169+ icon
170+ matRipple
171+ class="rounded"
172+ (click)="editRuleset(row)"
173+ [matTooltip]="
174+ 'APP.CONCIERGE.BOOKING_RULESET_EDIT'
175+ | translate
176+ "
177+ >
178+ <icon>edit</icon>
179+ </button>
180+ <button
181+ icon
182+ matRipple
183+ class="rounded"
184+ (click)="updateRulesetPriority(row, -1)"
185+ [matTooltip]="
186+ 'APP.CONCIERGE.BOOKING_RULESET_PRIORITY_UP'
187+ | translate
188+ "
189+ >
190+ <icon>arrow_upward</icon>
191+ </button>
192+ </div>
193+ <div class="flex items-center gap-1">
194+ <button
195+ icon
196+ matRipple
197+ class="rounded"
198+ (click)="removeRuleset(row)"
199+ [matTooltip]="
200+ 'APP.CONCIERGE.BOOKING_RULESET_REMOVE'
201+ | translate
202+ "
203+ >
204+ <icon class="text-error">delete</icon>
205+ </button>
206+ <button
207+ icon
208+ matRipple
209+ class="rounded"
210+ (click)="updateRulesetPriority(row, 1)"
211+ [matTooltip]="
212+ 'APP.CONCIERGE.BOOKING_RULESET_PRIORITY_DOWN'
213+ | translate
214+ "
215+ >
216+ <icon>arrow_downward</icon>
217+ </button>
218+ </div>
210219 </div>
211220 </ng-template>
212221 </ng-container>
213222 <footer
214- class="fixed bottom-0 left-1/2 z-10 mx-auto my-2 flex w-full max-w-[39rem] -translate-x-1/2 items-center justify-end space-x-4 rounded border-none bg-base-200 px-4 py-2"
223+ class="fixed bottom-0 left-1/2 z-10 mx-auto my-2 flex w-[calc(100%-1rem)] -translate-x-1/2 items-center justify-end space-x-4 rounded border-none bg-base-200 px-4 py-2"
224+ [class.max-w-[39rem]]="view === 'form'"
215225 *ngIf="!loading"
216226 >
217227 <button
0 commit comments