From 52444ea13c72ccf6ff09c629710a545b7e8283df Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 27 Sep 2022 10:35:51 +0200 Subject: Fix moderation dropdown overflow on mobile --- .../shared-main/buttons/action-dropdown.component.html | 2 +- .../shared-main/buttons/action-dropdown.component.scss | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'client/src/app') diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html index 017355bd0..37cf63fcd 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html @@ -18,7 +18,7 @@ -
+
{{ action.label }} {{ action.description }}
diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss b/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss index fe65d6e7e..4c8a591aa 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss @@ -53,6 +53,8 @@ } .dropdown-menu { + max-width: 75vw; + .dropdown-header { padding: 0.2rem 1rem; } @@ -72,3 +74,13 @@ } } } + +.item-label { + display: flex; + flex-direction: column; + min-width: 1px; + + > * { + @include ellipsis; + } +} -- cgit v1.2.3