feat: add persistent gift toast and responsive aigc layouts

update aigc page layouts to use viewport units and dynamic sizing instead of hardcoded 812px height for better device compatibility. replace fixed scss values with css custom properties for easier theming and responsive adjustments. refactor templatecarousel component to calculate dynamic card scale and layout based on screen dimensions. add local storage persistence for gift points toast so it stays closed after dismissal. update home page to respect the persisted toast state.
This commit is contained in:
duanshuwen
2026-07-07 09:25:50 +08:00
parent 90352e2981
commit 808ca48668
7 changed files with 135 additions and 36 deletions

View File

@@ -4,7 +4,6 @@
flex-direction: column;
width: 100vw;
height: 100vh;
min-height: 812px;
overflow: hidden;
color: #172033;
background:
@@ -19,7 +18,7 @@
.aigc-use-template-body {
position: relative;
flex: 1 1 auto;
flex: 1 1 0;
min-height: 0;
overflow: hidden;
}