Skip to content

Add limitations for some option values #26

@MiracleHorizon

Description

@MiracleHorizon

Describe the bug

Hi! When I was studying the application to implement some tasks I was interested in, I got into a not very pleasant situation:

If, for example, you set the "margin" option to a very large value, then because the settings are saved in local storage, the application stops working because of very large calculations (which I realized are completely done on the client).

Снимок экрана 2024-01-17 в 12 23 56 Снимок экрана 2024-01-17 в 12 25 11

My solution to this problem as a user is to get to the "not found" page (home and other pages hang immediately) and clear the settings in local storage.

To be honest, the first time I set the value to 10000000000.... and maybe more...

I think not every average user will be able to figure out how to solve this problem on their own.

(Aw, Snap!)
Снимок экрана 2024-01-17 в 12 35 24

Reproduction

No response

System Info

No response

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions