Skip to content

Commit 1f32e8c

Browse files
committed
feat: 首页UI兼容
1 parent 115bb15 commit 1f32e8c

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

site/components/Banner/Banner.module.less

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,16 @@
300300
}
301301
}
302302

303-
//:root {
304-
// --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji' !important;
305-
//}
303+
div.listContainer {
304+
position: absolute;
305+
left: 112px;
306+
right: 112px;
307+
width: calc(100vw - 224px);
308+
min-width: 760px;
309+
310+
@media (max-width: 1023px) {
311+
left: 24px;
312+
right: 24px;
313+
width: calc(100vw - 48px);
314+
}
315+
}

site/components/Banner/Banner.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export default () => {
7575
</div>
7676
<HomeDialog className={styles.top}
7777
promptTextareaStyle={{margin: "0 auto", width: "760px"}}
78+
recommendCaseClassName={styles.listContainer}
7879
style={{margin: "270px auto", width: "unset"}}/>
7980
{/*<div className={styles.buttons}>*/}
8081
{/* <div className={styles.start} onClick={scrollToAnchor}>*/}

0 commit comments

Comments
 (0)