Skip to content

Commit

Permalink
Allow smaller font size for hints (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-tejada authored May 14, 2024
1 parent 29cae1f commit 6f75383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type SettingsValidators = {
const validators: SettingsValidators = {
hintBackgroundColor: isValidColor,
hintFontColor: isValidColor,
hintFontSize: (value: number) => isWithinRange(value, 6, 72),
hintFontSize: (value: number) => isWithinRange(value, 1, 72),
hintBorderRadius: (value: number) => isWithinRange(value, 0, 72),
hintBorderWidth: (value: number) => isWithinRange(value, 0, 72),
hintBackgroundOpacity: (value: number | "") =>
Expand Down
2 changes: 1 addition & 1 deletion src/settings/SettingsComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export function SettingsComponent() {
<NumberInput
label="Font size (px)"
defaultValue={settings.hintFontSize}
min={6}
min={1}
max={72}
isValid={isValidSetting("hintFontSize", settings.hintFontSize)}
onChange={(value) => {
Expand Down

0 comments on commit 6f75383

Please sign in to comment.