homebridge-melcloud-control 4.0.0-beta.230 → 4.0.0-beta.231

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -113,15 +113,20 @@
113
113
  this.accountIndex = 0;
114
114
  const accountsCount = pluginConfig[0].accounts.length;
115
115
 
116
+ const container = document.getElementById("accountButton");
117
+ container.style.display = 'flex';
118
+ container.style.flexWrap = 'wrap';
119
+ container.style.gap = '0.5rem';
120
+
116
121
  for (let i = 0; i < accountsCount; i++) {
117
122
  const acc = pluginConfig[0].accounts[i];
118
123
  const button = document.createElement("button");
119
124
  button.type = "button";
120
125
  button.id = `button${i}`;
121
- button.className = "btn btn-primary me-2 mb-2";
126
+ button.className = "btn btn-primary";
122
127
  button.style.textTransform = 'none';
123
128
  button.innerText = acc.name;
124
- document.getElementById("accountButton").appendChild(button);
129
+ container.appendChild(button);
125
130
 
126
131
  button.addEventListener('click', async () => {
127
132
  for (let j = 0; j < accountsCount; j++) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.0.0-beta.230",
4
+ "version": "4.0.0-beta.231",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",