浏览代码

fix overflowing video title (#1284)

* fix overflowing video title

* fix maxColumn grid style
Klaudiusz Dembler 3 年之前
父节点
当前提交
5938e0af6c
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/shared/components/Grid/Grid.tsx
  2. 1 0
      src/shared/components/VideoTileBase/VideoTileBase.styles.tsx

+ 1 - 1
src/shared/components/Grid/Grid.tsx

@@ -57,7 +57,7 @@ const maxColumnsCss = ({ maxColumns }: ContainerProps) =>
   maxColumns
     ? css`
         ${media.xlarge} {
-          grid-template-columns: repeat(${maxColumns}, 1fr);
+          grid-template-columns: repeat(${maxColumns}, minmax(0, 1fr));
         }
       `
     : null

+ 1 - 0
src/shared/components/VideoTileBase/VideoTileBase.styles.tsx

@@ -102,6 +102,7 @@ export const AvatarContainer = styled.div`
 
 export const TextContainer = styled.div`
   flex: 1;
+  overflow: hidden;
 `
 
 export const KebabMenuButtonIcon = styled(IconButton)<ActiveProps>`