-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce a Reset button #12
Introduce a Reset button #12
Commits on May 17, 2023
-
🚀 feat(Settings.tsx): add reset button to reset settings to default v…
…alues The reset button allows users to reset all settings to their default values. When the button is clicked, all settings are reset to their default values.
Configuration menu - View commit details
-
Copy full SHA for e72751b - Browse repository at this point
Copy the full SHA e72751bView commit details -
🔧 chore(Settings.tsx): refactor handleReset function to use defaultSe…
…ttings object The handleReset function has been refactored to use the defaultSettings object instead of hardcoding the default values. This improves maintainability and reduces the risk of errors when changing the default values. The value of the aspectRatio radio group is now set to the value of the settings.aspectRatio state variable to ensure that the correct value is selected when resetting the settings.
Configuration menu - View commit details
-
Copy full SHA for d7b52d7 - Browse repository at this point
Copy the full SHA d7b52d7View commit details -
🐛 fix(defaults.ts): change default value of insetPadding from 0 to 1
The default value of insetPadding has been changed from 0 to 1 to provide a better visual experience. The previous value of 0 caused the image to be too close to the border, which made it difficult to see. The new value of 1 provides a small amount of padding, which makes the image more visible and easier to work with.
Configuration menu - View commit details
-
Copy full SHA for 2ee0581 - Browse repository at this point
Copy the full SHA 2ee0581View commit details -
🎨 style(Button.tsx): re-order imports and add ghost variant
This commit reorders the imports to follow the convention of having external libraries first, then internal modules. It also adds a new ghost variant to the buttonVariants constant.
Configuration menu - View commit details
-
Copy full SHA for 83a7c66 - Browse repository at this point
Copy the full SHA 83a7c66View commit details -
🎨 style(Settings.tsx): improve Settings UI layout and add reset butto…
…n icon The Settings UI layout has been improved by adding a title and a reset button icon. The title is now centered and the reset button is now an icon instead of text. This improves the overall look and feel of the Settings component.
Configuration menu - View commit details
-
Copy full SHA for c8e3e9b - Browse repository at this point
Copy the full SHA c8e3e9bView commit details -
🐛 fix(defaults.ts): change default value of insetPadding from 1 to 0
The default value of insetPadding has been changed from 1 to 0 to remove the unnecessary padding around the image.
Configuration menu - View commit details
-
Copy full SHA for 73a78b3 - Browse repository at this point
Copy the full SHA 73a78b3View commit details -
🎨 style(Button.tsx): change ghost button style
The ghost button style has been updated to have a slate background color and white text color. The hover effect has also been updated to have a red background color with 90% opacity. This change improves the visibility of the ghost button and makes it more consistent with the design system.
Configuration menu - View commit details
-
Copy full SHA for 3d80512 - Browse repository at this point
Copy the full SHA 3d80512View commit details -
🐛 fix(Settings.tsx): set default value for insetPadding to 2
The insetPadding value was not being reset to the default value when the reset button was clicked. This fix sets the default value to 2, which is the desired value.
Configuration menu - View commit details
-
Copy full SHA for c362d83 - Browse repository at this point
Copy the full SHA c362d83View commit details -
🎨 style(Settings.tsx): remove hover effect and margin from reset button
The hover effect and margin on the reset button were removed to simplify the button's appearance and make it consistent with the other buttons in the component.
Configuration menu - View commit details
-
Copy full SHA for 09d1493 - Browse repository at this point
Copy the full SHA 09d1493View commit details