mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Increase size of color wheel cursor on mobile (#16723)
This commit is contained in:
parent
e7f5d927b1
commit
47ac7062dc
@ -317,9 +317,13 @@ class HaHsColorPicker extends LitElement {
|
|||||||
const cy = ((y + 1) * size) / 2;
|
const cy = ((y + 1) * size) / 2;
|
||||||
|
|
||||||
const markerPosition = `${cx}px, ${cy}px`;
|
const markerPosition = `${cx}px, ${cy}px`;
|
||||||
const markerScale = this._pressed ? "1.5" : "1";
|
const markerScale = this._pressed
|
||||||
|
? this._pressed === "touch"
|
||||||
|
? "2.5"
|
||||||
|
: "1.5"
|
||||||
|
: "1";
|
||||||
const markerOffset =
|
const markerOffset =
|
||||||
this._pressed === "touch" ? `0px, -${size / 8}px` : "0px, 0px";
|
this._pressed === "touch" ? `0px, -${size / 16}px` : "0px, 0px";
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div class="container ${classMap({ pressed: Boolean(this._pressed) })}">
|
<div class="container ${classMap({ pressed: Boolean(this._pressed) })}">
|
||||||
|
@ -305,9 +305,13 @@ class HaTempColorPicker extends LitElement {
|
|||||||
const cy = ((y + 1) * size) / 2;
|
const cy = ((y + 1) * size) / 2;
|
||||||
|
|
||||||
const markerPosition = `${cx}px, ${cy}px`;
|
const markerPosition = `${cx}px, ${cy}px`;
|
||||||
const markerScale = this._pressed ? "1.5" : "1";
|
const markerScale = this._pressed
|
||||||
|
? this._pressed === "touch"
|
||||||
|
? "2.5"
|
||||||
|
: "1.5"
|
||||||
|
: "1";
|
||||||
const markerOffset =
|
const markerOffset =
|
||||||
this._pressed === "touch" ? `0px, -${size / 8}px` : "0px, 0px";
|
this._pressed === "touch" ? `0px, -${size / 16}px` : "0px, 0px";
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div class="container ${classMap({ pressed: Boolean(this._pressed) })}">
|
<div class="container ${classMap({ pressed: Boolean(this._pressed) })}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user