Преглед на файлове

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>`