Skip to content

Commit

Permalink
fix(Tile): if there is no metadata, position logo off of progress bar (
Browse files Browse the repository at this point in the history
  • Loading branch information
erautenberg authored Dec 20, 2023
1 parent dbf17c9 commit 494d7e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ export default class Tile extends Surface {
}

_calculateLogoYPosition() {
if (this._isInsetMetadata) {
return this._metadataY - (this._Metadata ? this._Metadata.h : 0);
if (this._isInsetMetadata && this._Metadata) {
return this._metadataY - this._Metadata.h;
}
return this._progressBarY
? this._progressBarY - this.style.paddingYBetweenContent
Expand Down

0 comments on commit 494d7e8

Please sign in to comment.