Skip to content

Commit 6928f11

Browse files
committed
style: update style
1 parent 7a6b7dd commit 6928f11

2 files changed

Lines changed: 34 additions & 8 deletions

File tree

src/styles/habit.css

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,32 @@
1414
display: grid;
1515
grid-template-columns: repeat(1, minmax(0, 1fr));
1616
gap: 1rem; /* gap-4 */
17+
width: 100%;
18+
}
19+
20+
/* 小屏幕设备 */
21+
@media screen and (max-width: 480px) {
22+
.habit-list-container {
23+
padding: 0.5rem;
24+
gap: 0.75rem;
25+
}
1726
}
1827

19-
/* Medium breakpoint (md:) equivalent ~768px */
20-
@media (min-width: 768px) {
28+
/* 中等屏幕设备 ~768px */
29+
@media screen and (min-width: 768px) {
2130
.habit-list-container {
2231
margin-left: auto;
2332
margin-right: auto;
2433
max-width: 400px;
25-
width: 100%;
2634
display: flex;
2735
flex-direction: column;
28-
gap: 1rem;
36+
}
37+
}
38+
39+
/* 大屏幕设备 */
40+
@media screen and (min-width: 1024px) {
41+
.habit-list-container {
42+
max-width: 500px;
2943
}
3044
}
3145
/* Adjust max-width/columns based on desired layout */
@@ -47,6 +61,7 @@
4761
flex-direction: column; /* Stack header and content */
4862
width: 100%;
4963
height: 100%;
64+
min-height: fit-content;
5065
}
5166

5267
.card-header {

styles.css

Lines changed: 15 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)