From 2ff425742150bbcfe0203c79f67c2db320409e88 Mon Sep 17 00:00:00 2001 From: Michael Aspetsberger Date: Tue, 19 Sep 2023 11:10:37 +0200 Subject: [PATCH] Fix buttonset styling when only a single button is present. --- components/lib/basecomponent/BaseComponent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index 034e94238..e7a4dda71 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -60,12 +60,12 @@ const buttonStyles = ` border-radius: 0; } -.p-buttonset .p-button:first-of-type { +.p-buttonset .p-button:first-of-type:not(:only-of-type) { border-top-right-radius: 0; border-bottom-right-radius: 0; } -.p-buttonset .p-button:last-of-type { +.p-buttonset .p-button:last-of-type:not(:only-of-type) { border-top-left-radius: 0; border-bottom-left-radius: 0; }