diff --git a/src/views/Community/components/DynamicNewsCard.js b/src/views/Community/components/DynamicNewsCard.js index 32116204..3f669633 100644 --- a/src/views/Community/components/DynamicNewsCard.js +++ b/src/views/Community/components/DynamicNewsCard.js @@ -538,72 +538,49 @@ const [currentMode, setCurrentMode] = useState('vertical'); pb={3} > - {/* 第一行:标题 + 通知开关 + 更新时间 */} + {/* 第一行:标题 + 模式切换 + 通知开关 + 更新时间 */} - {/* 左侧:标题 */} - - - - 实时要闻·动态追踪 - - + {/* 左侧:标题 + 模式切换按钮 */} + + + + + 实时要闻·动态追踪 + + + {/* 模式切换按钮(移动端隐藏) */} + {!isMobile && } + {/* 右侧:通知开关 + 更新时间 */} {/* 通知开关 - 移动端隐藏 */} {!isMobile && ( - - + - - - {browserPermission === 'granted' ? '已开启' : '开启通知'} - - - - + 实时消息推送:{browserPermission === 'granted' ? '已开启' : '未开启'} + + + )} {/* 更新时间 */} @@ -622,6 +599,7 @@ const [currentMode, setCurrentMode] = useState('vertical'); mode={mode} pageSize={pageSize} trackingFunctions={trackingFunctions} + isMobile={isMobile} /> @@ -637,37 +615,6 @@ const [currentMode, setCurrentMode] = useState('vertical'); overflow="visible" zIndex={1} > - {/* 顶部控制栏:模式切换按钮 + 分页控制器(移动端隐藏) */} - {!isMobile && ( - - - {/* 左侧:模式切换按钮 */} - - - {/* 右侧:分页控制器(仅在纵向模式显示) */} - {mode === 'vertical' && totalPages > 1 && ( - - )} - - - )} - {/* 内容区域 - 撑满剩余高度 */} {/* Loading 蒙层 - 数据请求时显示 */} @@ -733,7 +680,7 @@ const [currentMode, setCurrentMode] = useState('vertical'); )} - + {/* 右侧:分页控制器(仅在纵向模式显示),H5 放不下时折行 */} {mode === 'vertical' && totalPages > 1 && (