diff --git a/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts b/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts
index a60764a184..5ab4a00ab2 100644
--- a/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts
+++ b/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts
@@ -50,28 +50,30 @@ class HaPanelDevMqtt extends LitElement {
)}
>
-
-
${qosLevel.map(
- (qos) =>
- html`${qos}`
- )}
-
-
-
-
+
+
+ ${qosLevel.map(
+ (qos) =>
+ html`${qos}`
+ )}
+
+
+
+
+
${this.hass.localize("ui.panel.config.mqtt.payload")}
${this._messages.map(
@@ -170,6 +173,28 @@ class MqttSubscribeCard extends LitElement {
pre {
font-family: var(--code-font-family, monospace);
}
+ .panel-dev-mqtt-subscribe-fields {
+ display: flex;
+ justify-content: space-between;
+ flex-wrap: wrap;
+ }
+ ha-select {
+ width: 96px;
+ margin: 0 8px;
+ }
+ ha-textfield {
+ flex: 1;
+ }
+ @media screen and (max-width: 600px) {
+ ha-select {
+ margin-left: 0px;
+ margin-top: 8px;
+ }
+ ha-textfield {
+ flex: auto;
+ width: 100%;
+ }
+ }
`;
}
}