mirror of
https://gitlab.com/openlp/web-remote.git
synced 2024-12-22 03:22:48 +00:00
Prevent that the delete service item button is blocking the service item title.
This commit is contained in:
parent
c768d02904
commit
a396df09ff
@ -1,17 +1,21 @@
|
|||||||
<mat-card
|
<mat-card
|
||||||
class="service-item no-select"
|
class="service-item no-select"
|
||||||
[class.selected]="selected">
|
[class.selected]="selected">
|
||||||
<mat-card-content (click)="onItemSelected(item)">
|
<mat-card-content
|
||||||
<mat-icon class="service-item-icon">{{ getIcon(item) }}</mat-icon> {{ item.title }}
|
class="card-content"
|
||||||
|
(click)="onItemSelected(item)">
|
||||||
|
<mat-icon class="service-item-icon">{{ getIcon(item) }}</mat-icon> {{ item.title }}
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@if (useDeleteServiceItemFromOpenlp) {
|
@if (useDeleteServiceItemFromOpenlp) {
|
||||||
<button
|
<mat-card-actions>
|
||||||
mat-icon-button
|
<button
|
||||||
class="delete-service-item-button no-select"
|
mat-icon-button
|
||||||
[class.selected]="selected"
|
class="delete-service-item-button no-select"
|
||||||
matTooltip="{{ 'DELETE_FROM_SERVICE' | translate | titlecase }}"
|
[class.selected]="selected"
|
||||||
(click)="deleteFromService(item)">
|
matTooltip="{{ 'DELETE_FROM_SERVICE' | translate | titlecase }}"
|
||||||
<mat-icon>delete_outline</mat-icon>
|
(click)="deleteFromService(item)">
|
||||||
</button>
|
<mat-icon>delete_outline</mat-icon>
|
||||||
|
</button>
|
||||||
|
</mat-card-actions>
|
||||||
}
|
}
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
@ -1,10 +1,20 @@
|
|||||||
|
.service-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
/* Align icons with text */
|
/* Align icons with text */
|
||||||
.service-item-icon {
|
.service-item-icon {
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-content {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.delete-service-item-button {
|
.delete-service-item-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5px;
|
right: 5px;
|
||||||
right: 20px;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user