Fix layout jumping when loading timeline

This commit is contained in:
viktorstrate
2021-07-07 16:20:57 +02:00
parent 84ea622bc9
commit 1fa92c4fe1
2 changed files with 3 additions and 2 deletions

View File

@@ -204,7 +204,8 @@ export const MediaThumbnail = ({
>
<div
style={{
minWidth: `min(${minWidth}px, 100%)`,
// minWidth: `min(${minWidth}px, 100%)`,
minWidth: `${minWidth}px`,
height: `200px`,
}}
>

View File

@@ -103,7 +103,7 @@ const TimelineGroupAlbum = ({
<Link to={`/album/${album.id}`} className="hover:underline">
{album.title}
</Link>
<div className="flex flex-wrap items-center min-h-[210px] relative -mx-1 pr-4">
<div className="flex flex-wrap items-center h-[210px] relative -mx-1 pr-4 overflow-hidden">
{mediaElms}
{itemsBubble}
</div>