Add CSS Border-Image Generator component and update sidebar#377
Merged
Conversation
|
@trishantpahwa is attempting to deploy a commit to the shamilahmdt's projects Team on Vercel. A member of the Team first needs to authorize it. |
👋 Hello, @trishantpahwa!Thank you for your contribution to DevTasks. The maintainer has been notified and will review your pull request shortly. If any changes are needed, we will let you know in the comments below. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Adds a new CSS Border-Image Generator utility to the Dev Utilities Sandbox. The
border-imageproperty is hard to write by hand because it requires slicing an asset into nine regions with specific metrics — this tool makes it visual:%), and an optionalfillkeyword checkbox.border-image-repeaton horizontal and vertical edges (stretch,repeat,round,space), plus a border-width slider.resize: both) with the active border-image applied, showing howroundvsstretchalters rendering as the box changes size.border-style/border-width/border-image-source/border-image-slice/border-image-repeatblock. Long data URLs are truncated in the display, but the copied CSS always contains the full source.Wired up in all three required places:
/devutilities/border-imageinsrc/App.jsxsrc/config/sidebarSections.jscardsarray insrc/pages/DevUtilities/DevUtilities.jsx(searchable on the overview page)The component follows the same conventions as the existing CSS Gradient Generator (theme object via
useThemewith light/dark variants,sonnertoasts, react-icons, Tailwind card styling).🔗 Related Issue
Closes #376
🎯 Type of Change
fix: Bug fixfeat: New featurestyle: UI/Theme changes (Monochrome)chore: Build/Maintenance✅ Checklist
npm run build+ ESLint clean, verified rendering in browser)📸 Screenshots (if applicable)