diff --git a/src/textswitch.js b/src/textswitch.js
index 309401d342064f749b6e0665a34d568984e213b5..5046ba7218288a048af08617a777310b53d3e442 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;
             }