Skip to content

Commit

Permalink
fix mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
RFDarter committed Jul 15, 2024
1 parent 14b1327 commit 6e16926
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/v3/src/css/esp-entity-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export default css`
}
.climate-row {
width: 100%;
display: flex;
display: inline-flex;
flex-wrap: wrap;
text-align: left;
}
.climate-row > select{
Expand All @@ -88,6 +89,7 @@ export default css`
align-content: center;
width: 150px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
padding: 0 !important;
}
Expand Down
4 changes: 3 additions & 1 deletion packages/v3/src/esp-entity-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,9 @@ class ActionRenderer {
render_climate() {
if (!this.entity) return;
let target_temp_slider, target_temp_label, target_temp;
let current_temp = html`<div class="climate-row"><label>Current:&nbsp;${this.entity.current_temperature} °C</label></div>`;
let current_temp = html`<div class="climate-row" style="padding-bottom: 10px";>
<label>Current:&nbsp;${this.entity.current_temperature} °C</label>
</div>`;

if (
this.entity.target_temperature_low !== undefined &&
Expand Down
3 changes: 2 additions & 1 deletion packages/v3/src/esp-range-slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ export class EspRangeSlider extends LitElement {
cssReset,
css`
:host {
width: 100%;
min-width: 150px;
flex: 1;
}
input[type=range] {
-webkit-appearance: none;
Expand Down

0 comments on commit 6e16926

Please sign in to comment.