layout: fix options list align right on Windows (#1829)

This commit is contained in:
Huang Xin
2025-08-18 22:10:06 +08:00
committed by GitHub
parent 2e98ed44ee
commit bfacadb964
3 changed files with 3 additions and 3 deletions
@@ -264,7 +264,7 @@ const ColorPanel: React.FC<SettingsPanelPanelProp> = ({ bookKey, onRegisterReset
onChange={(event) => setCodeLanguage(event.target.value as CodeLanguage)}
options={CODE_LANGUAGES.map((lang) => ({
value: lang,
label: lang,
label: lang === 'auto-detect' ? _('Auto') : lang,
}))}
disabled={!codeHighlighting}
/>
@@ -59,7 +59,7 @@ export const useProgressSync = (bookKey: string) => {
config.xpointer = xpointerResult.xpointer;
}
} catch (error) {
console.error('Failed to convert CFI to XPointer', error);
console.warn('Failed to convert CFI to XPointer', error);
}
pushConfig(bookKey, config);
}