mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Bigger touch target for mobile map history trace (#19569)
This commit is contained in:
parent
73460c7d8a
commit
4c314928c6
@ -20,6 +20,7 @@ import { loadPolyfillIfNeeded } from "../../resources/resize-observer.polyfill";
|
||||
import { HomeAssistant } from "../../types";
|
||||
import "../ha-icon-button";
|
||||
import "./ha-entity-marker";
|
||||
import { isTouch } from "../../util/is_touch";
|
||||
|
||||
const getEntityId = (entity: string | HaMapEntity): string =>
|
||||
typeof entity === "string" ? entity : entity.entity_id;
|
||||
@ -282,7 +283,7 @@ export class HaMap extends ReactiveElement {
|
||||
this._mapPaths.push(
|
||||
Leaflet!
|
||||
.circleMarker(path.points[pointIndex].point, {
|
||||
radius: 3,
|
||||
radius: isTouch ? 8 : 3,
|
||||
color: path.color || darkPrimaryColor,
|
||||
opacity,
|
||||
fillOpacity: opacity,
|
||||
@ -312,7 +313,7 @@ export class HaMap extends ReactiveElement {
|
||||
this._mapPaths.push(
|
||||
Leaflet!
|
||||
.circleMarker(path.points[pointIndex].point, {
|
||||
radius: 3,
|
||||
radius: isTouch ? 8 : 3,
|
||||
color: path.color || darkPrimaryColor,
|
||||
opacity,
|
||||
fillOpacity: opacity,
|
||||
|
Loading…
x
Reference in New Issue
Block a user