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);
}
+1 -1
View File
@@ -26,7 +26,7 @@ export default function Select({
value={value}
onChange={onChange}
className={clsx(
'select h-8 min-h-8 rounded-md border-none text-end text-sm',
'select h-8 min-h-8 rounded-md border-none text-sm',
'bg-base-200 focus:outline-none focus:ring-0',
className,
)}