Skip to content

Commit

Permalink
fix: 修复移动端设置页底部信息错位
Browse files Browse the repository at this point in the history
  • Loading branch information
typed-sigterm committed Jan 15, 2025
1 parent 2d47930 commit 1c9c6ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/utils/ui.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { Guide } from './guide';
import JSConfetti from 'js-confetti';

export const DRAWER_DEFAULT_WIDTH = 450;
export const DRAWER_MIN_WIDTH = 450;
const fontSize = Number.parseFloat(getComputedStyle(document.documentElement).fontSize);
export const DRAWER_DEFAULT_WIDTH = 28 * fontSize;
export const DRAWER_MIN_WIDTH = DRAWER_DEFAULT_WIDTH;

/** 判断是否应该开始教程。 */
export function shouldStartGuide(key: keyof Guide) {
Expand Down

0 comments on commit 1c9c6ef

Please sign in to comment.