mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Media Card: Adds Cursor: Pointer
to Progress Bar (#5091)
This commit is contained in:
parent
959d8c3181
commit
5651a61604
@ -332,8 +332,13 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
.max="${stateObj.attributes.media_duration}"
|
.max="${stateObj.attributes.media_duration}"
|
||||||
.value="${getCurrentProgress(stateObj)}"
|
.value="${getCurrentProgress(stateObj)}"
|
||||||
class="progress"
|
class="progress"
|
||||||
style="--paper-progress-active-color: ${this
|
${styleMap({
|
||||||
._foregroundColor || "var(--accent-color)"}"
|
"--paper-progress-active-color":
|
||||||
|
this._foregroundColor || "var(--accent-color)",
|
||||||
|
cursor: supportsFeature(stateObj, SUPPORT_SEEK)
|
||||||
|
? "pointer"
|
||||||
|
: "initial",
|
||||||
|
})}
|
||||||
@click=${(e: MouseEvent) =>
|
@click=${(e: MouseEvent) =>
|
||||||
this._handleSeek(e, stateObj)}
|
this._handleSeek(e, stateObj)}
|
||||||
></paper-progress>
|
></paper-progress>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user