Skip to content

Commit

Permalink
Fix waveform height (#69)
Browse files Browse the repository at this point in the history
* Fix waveform to full width

* Fix waveform thumbnail height

* Fix waveform image height

* Set hardcoded height for image

* Add dynamic imgWidth for waveform calc height

* Change waveform image height

* Update drop-shadow height
  • Loading branch information
dualcnhq authored Jun 8, 2022
1 parent 89fbf74 commit caf2f89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/styles/item-image-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const baseItemImageStyles = css`
.drop-shadow {
filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
overflow: hidden;
height: 100%;
}
.list-box {
Expand Down Expand Up @@ -39,6 +40,10 @@ export const baseItemImageStyles = css`
export const waveformGradientStyles = css`
.waveform {
mix-blend-mode: screen;
position: relative;
height: 62.5%;
top: 50%;
transform: translateY(-50%);
}
.waveform-grad0 {
Expand Down
2 changes: 1 addition & 1 deletion src/tiles/item-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class ItemImage extends LitElement {

private get itemImageClass(): ClassInfo {
return {
contain: !this.isCompactTile,
contain: !this.isCompactTile && !this.isWaveform,
cover: this.isCompactTile,
blur: this.model?.contentWarning || false,
waveform: this.isWaveform,
Expand Down

0 comments on commit caf2f89

Please sign in to comment.