fix: unify compact navigation breakpoint
Some checks failed
Build and tests / test (push) Has been cancelled

This commit is contained in:
237899745
2026-08-03 22:25:55 +08:00
parent c529e6c51b
commit 8095b2391e
3 changed files with 8 additions and 4 deletions

View File

@@ -4941,7 +4941,7 @@
color: var(--text-secondary); color: var(--text-secondary);
} }
@media (min-width: 769px) { @media (min-width: 901px) {
.mobile-file-sheet-overlay { .mobile-file-sheet-overlay {
display: none !important; display: none !important;
} }

View File

@@ -22,7 +22,7 @@ createApp({
console.warn('[视图] 无法读取文件视图偏好:', error); console.warn('[视图] 无法读取文件视图偏好:', error);
} }
return window.matchMedia('(max-width: 768px)').matches ? 'list' : 'grid'; return window.matchMedia('(max-width: 900px)').matches ? 'list' : 'grid';
})(); })();
return { return {
@@ -2251,7 +2251,7 @@ handleDragLeave(e) {
}, },
isMobileViewport() { isMobileViewport() {
return window.matchMedia('(max-width: 768px)').matches; return window.matchMedia('(max-width: 900px)').matches;
}, },
setMobileSheetScrollLock(locked) { setMobileSheetScrollLock(locked) {

View File

@@ -2709,7 +2709,7 @@ body.enterprise-netdisk .mobile-file-create-trigger {
} }
} }
@media (max-width: 768px) { @media (max-width: 900px) {
body.enterprise-netdisk { body.enterprise-netdisk {
min-width: 0; min-width: 0;
min-height: 100vh; min-height: 100vh;
@@ -3159,12 +3159,16 @@ body.enterprise-netdisk .mobile-file-create-trigger {
body.enterprise-netdisk .file-list-action-col { body.enterprise-netdisk .file-list-action-col {
width: 48px; width: 48px;
padding-left: 4px !important; padding-left: 4px !important;
display: table-cell !important;
} }
body.enterprise-netdisk .file-row-mobile-more { body.enterprise-netdisk .file-row-mobile-more {
width: 42px; width: 42px;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
display: inline-flex !important;
align-items: center;
justify-content: center;
border-radius: 11px; border-radius: 11px;
} }