瀏覽代碼

Remove hardcoded breakpoints

Francesco Baccetti 4 年之前
父節點
當前提交
abfffe41b3
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/components/VideoBestMatch/VideoBestMatch.style.tsx
  2. 1 0
      src/shared/theme/breakpoints.ts

+ 1 - 1
src/components/VideoBestMatch/VideoBestMatch.style.tsx

@@ -12,7 +12,7 @@ export const Content = styled.div`
   grid-template-columns: min(650px, 50%) 1fr;
   grid-column-gap: 24px;
 
-  @media (max-width: 750px) {
+  @media (max-width: ${bp.smallTablet}) {
     grid-template-columns: 1fr;
   }
 `

+ 1 - 0
src/shared/theme/breakpoints.ts

@@ -1,5 +1,6 @@
 export default {
   mobile: '480px',
+  smallTablet: '750px',
   tablet: '1156px',
   largeViewport: '2000px',
 }