From e8005c8d3a6edf2c8cdce3fe098fb9acff8a57c6 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Sun, 28 Nov 2021 20:07:37 +0900
Subject: client: refine ui

---
 packages/client/src/components/form/switch.vue | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

(limited to 'packages/client/src/components/form/switch.vue')

diff --git a/packages/client/src/components/form/switch.vue b/packages/client/src/components/form/switch.vue
index d6df68a07f..239303a55a 100644
--- a/packages/client/src/components/form/switch.vue
+++ b/packages/client/src/components/form/switch.vue
@@ -18,7 +18,7 @@
 	</span>
 	<span class="label">
 		<span><slot></slot></span>
-		<p><slot name="caption"></slot></p>
+		<p class="caption"><slot name="caption"></slot></p>
 	</span>
 </div>
 </template>
@@ -118,10 +118,14 @@ export default defineComponent({
 			transition: inherit;
 		}
 
-		> p {
-			margin: 0;
+		> .caption {
+			margin: 8px 0 0 0;
 			color: var(--fgTransparentWeak);
-			font-size: 90%;
+			font-size: 0.85em;
+
+			&:empty {
+				display: none;
+			}
 		}
 	}
 
-- 
cgit v1.2.3-freya

