🐛 Fix(web): Prevent long titles from breaking form length and event widths#231
Merged
tyler-dane merged 2 commits intomainfrom Jan 26, 2025
Merged
🐛 Fix(web): Prevent long titles from breaking form length and event widths#231tyler-dane merged 2 commits intomainfrom
tyler-dane merged 2 commits intomainfrom
Conversation
Inputs don't automatically wrap like text areas, so this fixes the bug in #142
This prevents a long title from expanding the rectangle width
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.
This pull request addresses #142 and includes changes to the
packages/web/src/views/Calendar/components/Sidebar/styled.tsandpackages/web/src/views/Forms/EventForm/styled.tsfiles. The changes focus on updating the styling and component usage within these files.Styling and component updates:
packages/web/src/views/Calendar/components/Sidebar/styled.ts: Changed the width of theSidebarTabContainerfrom 100% to a fixed width defined bySIDEBAR_OPEN_WIDTH.packages/web/src/views/Forms/EventForm/styled.ts: Added an import for theInputcomponent from@web/components/Input. This change also fixed Move cursor to end of title when opening form #155packages/web/src/views/Forms/EventForm/styled.ts: Updated theStyledTitlecomponent to useInputinstead ofTextareaand added a font-weight property.Working demo:
working.mov