From 40dcf81875878881c69778b13c1235006ea66ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Tue, 31 Oct 2023 10:35:33 +0100 Subject: [PATCH 1/3] fix(actions): long text wrap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- src/assets/action.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/action.scss b/src/assets/action.scss index ef6bb27ccf..ed22e6c4b4 100644 --- a/src/assets/action.scss +++ b/src/assets/action.scss @@ -115,7 +115,7 @@ &__longtext { cursor: pointer; // allow the use of `\n` - white-space: pre-wrap; + white-space: pre-wrap !important; } &__name { From 03cecfbcd7c544e68be8c9b2c182d2cda72e83ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Tue, 31 Oct 2023 10:47:31 +0100 Subject: [PATCH 2/3] feat(NcActionButton): support menu styling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- src/assets/action.scss | 8 ++ .../NcActionButton/NcActionButton.vue | 75 +++++++++++-------- 2 files changed, 51 insertions(+), 32 deletions(-) diff --git a/src/assets/action.scss b/src/assets/action.scss index ed22e6c4b4..67b75a0228 100644 --- a/src/assets/action.scss +++ b/src/assets/action.scss @@ -126,5 +126,13 @@ max-width: 100%; display: inline-block; } + + &__menu-icon { + // Push to the right + margin-left: auto; + // Align with right end of the button + // This is the padding-right + margin-right: -$icon-margin; + } } } diff --git a/src/components/NcActionButton/NcActionButton.vue b/src/components/NcActionButton/NcActionButton.vue index 328ed52ad0..8148669749 100644 --- a/src/components/NcActionButton/NcActionButton.vue +++ b/src/components/NcActionButton/NcActionButton.vue @@ -26,35 +26,32 @@ This component is made to be used inside of the [NcActions](#NcActions) componen ```vue @@ -217,6 +211,9 @@ export default { {{ text }} + + + @@ -224,6 +221,7 @@ export default {