WebUI: implement per-device display mode override

This commit is contained in:
Yukino Song
2025-02-25 05:51:56 +08:00
parent c6127ed0e5
commit 6f35d52cdd
4 changed files with 46 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ const config = ref(props.config)
const validateFallbackMode = (event) => {
const value = event.target.value;
if (!value.match(/^\d+x\d+x\d+$/)) {
if (!value.match(/^\d+x\d+x\d+(\.\d+)?$/)) {
event.target.setCustomValidity($t('config.fallback_mode_error'));
} else {
event.target.setCustomValidity('');