Fix moderation dropdown overflow on mobile
This commit is contained in:
parent
85edcb5626
commit
52444ea13c
|
@ -18,7 +18,7 @@
|
||||||
<ng-template #templateActionLabel let-action>
|
<ng-template #templateActionLabel let-action>
|
||||||
<my-global-icon *ngIf="action.iconName" [iconName]="action.iconName" [ngClass]="'icon-' + action.iconName" aria-hidden="true"></my-global-icon>
|
<my-global-icon *ngIf="action.iconName" [iconName]="action.iconName" [ngClass]="'icon-' + action.iconName" aria-hidden="true"></my-global-icon>
|
||||||
|
|
||||||
<div class="d-flex flex-column">
|
<div class="item-label">
|
||||||
<span i18n>{{ action.label }}</span>
|
<span i18n>{{ action.label }}</span>
|
||||||
<small class="muted" *ngIf="action.description">{{ action.description }}</small>
|
<small class="muted" *ngIf="action.description">{{ action.description }}</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -53,6 +53,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
|
max-width: 75vw;
|
||||||
|
|
||||||
.dropdown-header {
|
.dropdown-header {
|
||||||
padding: 0.2rem 1rem;
|
padding: 0.2rem 1rem;
|
||||||
}
|
}
|
||||||
|
@ -72,3 +74,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-label {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 1px;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
@include ellipsis;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue