浏览代码

hide producthunt embed on mobile

AykutSarac 3 年之前
父节点
当前提交
d19923fed6
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/components/Producthunt/index.tsx

+ 4 - 0
src/components/Producthunt/index.tsx

@@ -5,6 +5,10 @@ const StyledProducthunt = styled.a`
   position: fixed;
   bottom: 12px;
   right: 12px;
+
+  @media only screen and (max-width: 768px) {
+    display: none;
+  }
 `;
 
 const StyledImage = styled.img`