From 464d6031f10d5f5c01adc8b305ba214d1959cfa8 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Tue, 2 Jun 2020 10:12:36 +0200
Subject: [PATCH] textswitch: Fill the width of the host element

---
 src/textswitch.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/textswitch.js b/src/textswitch.js
index 309401d..5046ba7 100644
--- a/src/textswitch.js
+++ b/src/textswitch.js
@@ -49,6 +49,7 @@ export class TextSwitch extends LitElement {
 
             div {
                 white-space: nowrap;
+                display: flex;
             }
 
             #button1 {
@@ -60,6 +61,10 @@ export class TextSwitch extends LitElement {
                 color: var(--vpu-primary-text-color) !important;
             }
 
+            .button {
+                flex-grow: 1;
+            }
+
             .button:hover {
                 background-color: var(--vpu-secondary-bg-color) !important;
             }
-- 
GitLab