diff --git a/src/pages/Web/index.scss b/src/pages/Web/index.scss index c651e3f..1004900 100644 --- a/src/pages/Web/index.scss +++ b/src/pages/Web/index.scss @@ -1,8 +1,9 @@ .WebPage { .list { - display: flex; - flex-wrap: wrap; - justify-content: center; + display: grid; + grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + gap: 20px; + justify-items: center; min-height: 100px; margin-top: 40px; @@ -15,8 +16,6 @@ width: 200px; height: 250px; padding: 0px 20px; - margin-right: 50px; - margin-bottom: 20px; border: 1px solid #eee; border-radius: 5px; background-color: #fff; @@ -158,4 +157,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/pages/Web/index.tsx b/src/pages/Web/index.tsx index 21ec452..5d979ef 100644 --- a/src/pages/Web/index.tsx +++ b/src/pages/Web/index.tsx @@ -120,7 +120,7 @@ const LinkPage = () => {
{listTemp.length > 0 ? ( listTemp.map(item => ( -
+
@@ -155,7 +155,7 @@ const LinkPage = () => { <>

{isMethod === "edit" ? '编辑网站' : '新增网站'}

-
+