-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fixed the gap between note/title placeholder #7171
base: main
Are you sure you want to change the base?
fixed the gap between note/title placeholder #7171
Conversation
Welcome!
Hello there, congrats on your first PR! We're excited to have you contributing to this project. |
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.
PR Summary
This PR addresses a gap issue between the note/title placeholder on mobile devices by modifying the TextAreaInput component's styling.
- Added media query in
TextAreaInput.tsx
for screens max-width 768px, setting absolute positioning forStyledTextAreaContainer
- Potential concern: Absolute positioning may cause layout issues in different contexts or screen sizes
- Consider testing the changes across various mobile devices and screen orientations
- Evaluate if the fixed positioning (-40px left, 10px top) is suitable for all use cases
- Slight modification to import order in
TextAreaInput.tsx
, which may affect code readability
1 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings
@media (max-width: 768px) { | ||
position: absolute; | ||
left: -40px; | ||
top: 10px; | ||
} |
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.
style: Absolute positioning may cause layout issues in different contexts. Consider a more flexible approach.
import styled from '@emotion/styled'; | ||
import { ChangeEvent, useEffect, useRef, useState } from 'react'; | ||
import TextareaAutosize from 'react-textarea-autosize'; |
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.
style: Import order changed. Ensure this follows the project's import ordering conventions.
Why so many package.json and yarn.lock changes? |
added a media query to fix the gap