mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 05:27:46 +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}"
|
||||
.value="${getCurrentProgress(stateObj)}"
|
||||
class="progress"
|
||||
style="--paper-progress-active-color: ${this
|
||||
._foregroundColor || "var(--accent-color)"}"
|
||||
${styleMap({
|
||||
"--paper-progress-active-color":
|
||||
this._foregroundColor || "var(--accent-color)",
|
||||
cursor: supportsFeature(stateObj, SUPPORT_SEEK)
|
||||
? "pointer"
|
||||
: "initial",
|
||||
})}
|
||||
@click=${(e: MouseEvent) =>
|
||||
this._handleSeek(e, stateObj)}
|
||||
></paper-progress>
|
||||
|
Loading…
x
Reference in New Issue
Block a user