Skip to content

Commit

Permalink
fix(file-item): error reset text-align
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Jun 27, 2024
1 parent 463a852 commit a9b1825
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions blocks/FileItem/file-item.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,7 @@ lr-file-item {

display: block;
overflow: hidden;
content-visibility: auto;
contain-intrinsic-size: auto var(--uc-file-item-height);

/*
* This is workaround for chrome-based browsers.
*
* In some cases `content-visibility: auto` property works incorrectly together with IntersectionObserver API.
* It causes the browser to render the element with a height of 0px instead `var(--uc-file-item-height)` value.
* So we need to set 1px fallback to force the browser to render the element with the non-zero height.
*/
min-height: var(--uc-file-item-height, 1px);
min-height: var(--uc-file-item-height);
}

lr-file-item:last-of-type {
Expand Down Expand Up @@ -60,6 +50,7 @@ lr-file-item .thumb {
}

lr-file-item .file-name-wrapper {
text-align: left;
display: flex;
flex-direction: column;
align-items: flex-start;
Expand Down

0 comments on commit a9b1825

Please sign in to comment.