Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yuvaraj8019
Copy link

added a media query to fix the gap

Copy link

Welcome!

Hello there, congrats on your first PR! We're excited to have you contributing to this project.
By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.

Generated by 🚫 dangerJS against e81bcca

Copy link

@greptile-apps greptile-apps bot left a 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 for StyledTextAreaContainer
  • 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

Comment on lines +44 to +48
@media (max-width: 768px) {
position: absolute;
left: -40px;
top: 10px;
}
Copy link

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.

Comment on lines +1 to 3
import styled from '@emotion/styled';
import { ChangeEvent, useEffect, useRef, useState } from 'react';
import TextareaAutosize from 'react-textarea-autosize';
Copy link

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.

@ehconitin
Copy link
Contributor

Why so many package.json and yarn.lock changes?
Probably remove them, just keep the media changes for review
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants