From a9b18259dc2fd9cf111a8fa0b0f00e9ff386fd43 Mon Sep 17 00:00:00 2001 From: nd0ut Date: Thu, 27 Jun 2024 17:22:24 +0300 Subject: [PATCH] fix(file-item): error reset text-align --- blocks/FileItem/file-item.css | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/blocks/FileItem/file-item.css b/blocks/FileItem/file-item.css index e3d4192a..43fd862d 100644 --- a/blocks/FileItem/file-item.css +++ b/blocks/FileItem/file-item.css @@ -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 { @@ -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;