Pārlūkot izejas kodu

Fix: Page size for work records will be displayed on the mobile view

iaun 3 mēneši atpakaļ
vecāks
revīzija
0c4b7435ba

+ 0 - 1
frontend/src/components/WorkRecordList.jsx

@@ -410,7 +410,6 @@ function WorkRecordList() {
           showSizeChanger: true,
           showQuickJumper: !isMobile,
           showTotal: (total) => `共 ${total} 条`,
-          size: isMobile ? 'small' : 'default',
           pageSizeOptions: ['10', '20', '50', '100']
         }}
       />

+ 9 - 0
frontend/src/index.css

@@ -16,6 +16,15 @@ body {
 
 /* Mobile responsive styles */
 @media (max-width: 767px) {
+  /* Force show pagination size changer on mobile */
+  .ant-pagination-options {
+    display: inline-block !important;
+  }
+  
+  .ant-pagination-options-size-changer {
+    display: inline-block !important;
+  }
+
   /* Ensure minimum touch target size of 44x44px */
   .ant-btn {
     min-height: 44px;