|
5 | 5 | /* 限制弹层最大高度,包含安全区 */ |
6 | 6 | max-height: calc(#{$quickenter-max-height} + env(safe-area-inset-top, 0)); |
7 | 7 | background: $quickenter-bg-color; |
8 | | - border-radius: 0 0 12px 12px; |
| 8 | + border-radius: 0 0 scale-px(12px) scale-px(12px); |
9 | 9 | overflow: hidden; |
10 | 10 | box-sizing: border-box; |
11 | 11 | display: flex; |
|
24 | 24 | display: flex; |
25 | 25 | align-items: center; |
26 | 26 | justify-content: space-between; |
27 | | - padding: 30px 16px 0; |
| 27 | + padding: scale-px(30px) scale-px(16px) 0; |
28 | 28 | box-sizing: border-box; |
29 | 29 | } |
30 | 30 |
|
|
53 | 53 |
|
54 | 54 | &-content { |
55 | 55 | flex: 1; |
56 | | - padding: 10px 28px; |
| 56 | + padding: scale-px(10px) scale-px(28px); |
57 | 57 | overflow-y: hidden; // 始终可滚动,防止内容被遮挡 |
58 | 58 | box-sizing: border-box; |
59 | 59 |
|
|
75 | 75 | flex-direction: column; |
76 | 76 | align-items: center; |
77 | 77 | justify-content: flex-start; |
78 | | - width: 56px; |
79 | | - padding: 0 0 12px 0; // Reduced from 16px to ensure 2 rows fit in 256px |
| 78 | + width: scale-px(56px); |
| 79 | + padding: 0 0 scale-px(12px) 0; // Reduced from 16px to ensure 2 rows fit in 256px |
80 | 80 | box-sizing: border-box; |
81 | 81 | cursor: pointer; |
82 | 82 |
|
83 | 83 | // Calculate gap for 4 items per row: (100% - 4 * 56px) / 3 |
84 | | - margin-right: calc((100% - 224px) / 3); |
| 84 | + margin-right: calc((100% - scale-px(224px)) / 3); |
85 | 85 |
|
86 | 86 | &:nth-child(4n) { |
87 | 87 | margin-right: 0; |
88 | 88 | } |
89 | 89 |
|
90 | 90 | &-icon { |
91 | | - width: 56px; |
92 | | - height: 56px; |
| 91 | + width: scale-px(56px); |
| 92 | + height: scale-px(56px); |
93 | 93 | display: flex; |
94 | 94 | align-items: center; |
95 | 95 | justify-content: center; |
96 | 96 | border-radius: 50%; |
97 | 97 | background: $quickenter-item-icon-bg-color; |
98 | 98 | color: $quickenter-item-icon-color; |
99 | | - margin-bottom: 8px; |
| 99 | + margin-bottom: scale-px(8px); |
100 | 100 | flex-shrink: 0; |
101 | 101 |
|
102 | 102 | svg, |
103 | 103 | .nut-icon { |
104 | | - width: 22px; |
105 | | - height: 22px; |
| 104 | + width: scale-icon-px(22px); |
| 105 | + height: scale-icon-px(22px); |
106 | 106 | } |
107 | 107 | } |
108 | 108 |
|
109 | 109 | &-title { |
110 | 110 | font-size: $quickenter-item-title-font-size; |
111 | 111 | color: $quickenter-item-title-color; |
112 | 112 | text-align: center; |
113 | | - line-height: 1.4; |
| 113 | + line-height: scale-font-px(16px); |
114 | 114 | // Allow multi-line if text is long, preventing truncation |
115 | 115 | white-space: normal; |
116 | 116 | word-wrap: break-word; |
117 | | - width: 72px; // Allow text to be slightly wider than icon |
118 | | - margin-left: -8px; // Center 72px title over 56px icon |
119 | | - margin-right: -8px; |
| 117 | + width: scale-px(72px); // Allow text to be slightly wider than icon |
| 118 | + margin-left: scale-px(-8px); // Center 72px title over 56px icon |
| 119 | + margin-right: scale-px(-8px); |
120 | 120 | } |
121 | 121 | } |
122 | 122 | } |
0 commit comments