Skip to content

Commit 6c7e7a0

Browse files
committed
refactor(PrinterPage): 调整打印纸张尺寸提示显示逻辑
- 移除了对 maybeChrome 和 maybeAndroid 的判断 - 固定显示纸张尺寸提示信息,不再受设备类型的限制
1 parent 1049b06 commit 6c7e7a0

File tree

1 file changed

+4
-6
lines changed
  • src/pages/PrinterPage/components/AdjustSheets

1 file changed

+4
-6
lines changed

src/pages/PrinterPage/components/AdjustSheets/index.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { useInsets } from '@/features/insets/contexts/InsetsContext';
3333
import { getAvailablePageSizes } from '@/features/print/utils/paperSize';
3434
import { type SyncStateOptions, syncState } from '@/hooks/syncState';
3535
import { usePreferredDarkMode } from '@/hooks/usePreferredDarkMode';
36-
import { maybeAndroid, maybeChrome } from '@/utils/platform';
36+
import { maybeAndroid } from '@/utils/platform';
3737
import { mergeMultiSxProps } from '@/utils/suid';
3838
import { useConfig } from '../../contexts/ConfigContext';
3939
import type { PrintConfig } from '../../types/config';
@@ -211,11 +211,9 @@ export default function AdjustSheets(props: AdjustSheetsProps) {
211211
>
212212
<For each={getAvailablePageSizes()}>{(size) => <MenuItem value={size}>{size}</MenuItem>}</For>
213213
</Select>
214-
<Show when={!maybeChrome || maybeAndroid}>
215-
<FormHelperText id="adjust-panel__size__helper">
216-
您可能需要在“打印”窗口中同时更改“纸张尺寸”才能正确打印。
217-
</FormHelperText>
218-
</Show>
214+
<FormHelperText id="adjust-panel__size__helper">
215+
您可能需要在“打印”窗口中同时更改“纸张尺寸”才能正确打印。
216+
</FormHelperText>
219217
</FormControl>
220218
</ListItem>
221219
<ListItem>

0 commit comments

Comments
 (0)