Increase max length of custom themes to 32
This commit is contained in:
@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|||||||
### Changed
|
### Changed
|
||||||
- (**Theme**) Improve automatic theme background colors
|
- (**Theme**) Improve automatic theme background colors
|
||||||
- (**Theme**) Adjust "primary color" of dynamic color theme on manga pages
|
- (**Theme**) Adjust "primary color" of dynamic color theme on manga pages
|
||||||
|
- (**Theme**) Increase max length of custom theme names to 32 (previously 16)
|
||||||
|
|
||||||
## [20251230.01] (r2937) - 2025-12-30
|
## [20251230.01] (r2937) - 2025-12-30
|
||||||
|
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ export const ThemeCreationDialog = ({
|
|||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const name = e.target.value.trim();
|
const name = e.target.value.trim();
|
||||||
|
|
||||||
const isValidLength = name.length <= 16;
|
const isValidLength = name.length <= 32;
|
||||||
const isUnique = isThemeNameUnique(name, customThemes);
|
const isUnique = isThemeNameUnique(name, customThemes);
|
||||||
setInvalidName(!isValidLength || !isUnique);
|
setInvalidName(!isValidLength || !isUnique);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user