@@ -153,10 +153,13 @@ const ChallengeControls: React.FC<ChallengeControlsProps> = ({
153
153
maxHeight : isMobile ? '300px' : '400px' ,
154
154
overflowY : 'auto' ,
155
155
minWidth : isMobile ? '250px' : '300px' ,
156
+ maxWidth : isMobile ? '80vw' : 'none' ,
156
157
backgroundColor : '#fff' ,
157
158
boxShadow : '0 2px 8px rgba(0, 0, 0, 0.15)' ,
158
159
borderRadius : '4px' ,
159
- border : '1px solid #f0f0f0'
160
+ border : '1px solid #f0f0f0' ,
161
+ position : 'relative' ,
162
+ zIndex : 1050
160
163
} } >
161
164
{ /* 添加标签搜索框 */ }
162
165
< Input
@@ -213,7 +216,16 @@ const ChallengeControls: React.FC<ChallengeControlsProps> = ({
213
216
wrap = { ! isMobile }
214
217
>
215
218
{ /* 标签过滤 */ }
216
- < Dropdown overlay = { tagMenu } trigger = { [ 'click' ] } >
219
+ < Dropdown
220
+ overlay = { tagMenu }
221
+ trigger = { [ 'click' ] }
222
+ placement = { isMobile ? "bottomCenter" : "bottomLeft" }
223
+ overlayStyle = { {
224
+ position : 'fixed' ,
225
+ marginTop : '8px' ,
226
+ zIndex : 1050
227
+ } }
228
+ >
217
229
< Button
218
230
icon = { < TagOutlined /> }
219
231
size = { isMobile ? "middle" : "default" }
@@ -224,7 +236,11 @@ const ChallengeControls: React.FC<ChallengeControlsProps> = ({
224
236
</ Dropdown >
225
237
226
238
{ /* 难度过滤 */ }
227
- < Dropdown overlay = { difficultyMenu } trigger = { [ 'click' ] } >
239
+ < Dropdown
240
+ overlay = { difficultyMenu }
241
+ trigger = { [ 'click' ] }
242
+ placement = { isMobile ? "bottomCenter" : "bottomLeft" }
243
+ >
228
244
< Button
229
245
icon = { < FilterOutlined /> }
230
246
size = { isMobile ? "middle" : "default" }
@@ -235,7 +251,11 @@ const ChallengeControls: React.FC<ChallengeControlsProps> = ({
235
251
</ Dropdown >
236
252
237
253
{ /* 平台过滤 */ }
238
- < Dropdown overlay = { platformMenu } trigger = { [ 'click' ] } >
254
+ < Dropdown
255
+ overlay = { platformMenu }
256
+ trigger = { [ 'click' ] }
257
+ placement = { isMobile ? "bottomCenter" : "bottomLeft" }
258
+ >
239
259
< Button
240
260
icon = { < FilterOutlined /> }
241
261
size = { isMobile ? "middle" : "default" }
@@ -247,7 +267,11 @@ const ChallengeControls: React.FC<ChallengeControlsProps> = ({
247
267
248
268
{ /* 排序控制 - 移到最后 */ }
249
269
< Space style = { { width : isMobile ? '100%' : 'auto' } } >
250
- < Dropdown overlay = { sortMenu } trigger = { [ 'click' ] } >
270
+ < Dropdown
271
+ overlay = { sortMenu }
272
+ trigger = { [ 'click' ] }
273
+ placement = { isMobile ? "bottomCenter" : "bottomLeft" }
274
+ >
251
275
< Button
252
276
size = { isMobile ? "middle" : "default" }
253
277
style = { {
0 commit comments