-
Notifications
You must be signed in to change notification settings - Fork 4
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
VIDCS-3475: Provide better styling for the Send
button in the Feedback panel
#107
Conversation
overflowX: 'hidden', | ||
overflowY: 'auto', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
height, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the tailwindcss classes in the eliminated div above.
ml="25px" | ||
mr="25px" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering why things looked a little off 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 💪 🚀
frontend/src/components/MeetingRoom/ReportIssue/FeedbackForm/FeedbackForm.tsx
Outdated
Show resolved
Hide resolved
const widthClass = isSmallViewport ? '@apply w-[calc(100dvw_-_48px)]' : ''; | ||
// Account for: 64px panel header + 80px toolbar if small viewport or 96px toolbar if normal viewport + (40px submit button + 24px submit button margin) | ||
const height = isSmallViewport ? 'calc(100dvh - 208px)' : 'calc(100dvh - 224px)'; | ||
const width = isSmallViewport ? 'calc(100dvw - 50px)' : '310px'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
60 + 80 = 124
64 + 80 = 144 (🙈 .... remind me never to help my kids with math 😄)
40 + 24 = 64
How do we arrive that the magic literals used here? Just curious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great question that others would surely have! I added that into the last commit. Let me know if it's not clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naively, seems like we can use variables to calculate these CSS values. That said, a tech debt item for another day, if we decide to cross that bridge.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 💪 🚀
const widthClass = isSmallViewport ? '@apply w-[calc(100dvw_-_48px)]' : ''; | ||
// Account for: 64px panel header + 80px toolbar if small viewport or 96px toolbar if normal viewport + (40px submit button + 24px submit button margin) | ||
const height = isSmallViewport ? 'calc(100dvh - 208px)' : 'calc(100dvh - 224px)'; | ||
const width = isSmallViewport ? 'calc(100dvw - 50px)' : '310px'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naively, seems like we can use variables to calculate these CSS values. That said, a tech debt item for another day, if we decide to cross that bridge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
tested, LGTM 🚀 |
What is this PR doing?
Description
Fixes the styling on the Feedback panel
Screenshots and GIF
How should this be manually tested?
pbpaste | git apply
What are the relevant tickets?
A maintainer will add this ticket number.
Resolves VIDCS-3475
Checklist
[ ] Branch is based on
develop
(notmain
).[ ] Resolves a
Known Issue
.[ ] If yes, did you remove the item from the
docs/KNOWN_ISSUES.md
?[ ] Resolves an item reported in
Issues
.If yes, which issue? Issue Number?