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

fix: Indentation in Comment Replies #10869

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

Conversation

iamsmruti
Copy link
Contributor

@iamsmruti iamsmruti commented Feb 13, 2025

Description

Fixes/Partially Fixes #10776
I had to change some styling in a few components

Demo

Screenshot 2025-02-13 at 11 45 02 PM

Final checklist

  • I checked the code review guidelines
  • I have added Metrics Representative as reviewer(s) if my PR invovles metrics/data/analytics related changes
  • I have performed a self-review of my code, the same way I'd do it for any other team member
  • I have tested all cases I listed in the testing scenarios and I haven't found any issues or regressions
  • Whenever I took a non-obvious choice I added a comment explaining why I did it this way
  • I added the label Skip Maintainer Review Indicating the PR only requires reviewer review and can be merged right after it's approved if the PR introduces only minor changes, does not contain any architectural changes or does not introduce any new patterns and I think one review is sufficient'
  • PR title is human readable and could be used in changelog

@github-actions github-actions bot requested a review from mattkrick February 13, 2025 18:30
@iamsmruti iamsmruti changed the title Fix: Indentation in Comment Replies fix: Indentation in Comment Replies Feb 13, 2025
@iamsmruti iamsmruti force-pushed the fix/indentation-in-comment-replies branch 3 times, most recently from 62ea1a6 to 4be4445 Compare February 13, 2025 19:44
@iamsmruti iamsmruti force-pushed the fix/indentation-in-comment-replies branch from 4be4445 to f5622b5 Compare February 13, 2025 19:51
@mattkrick mattkrick requested a review from ackernaut February 13, 2025 20:43
@mattkrick
Copy link
Member

Thanks for the PR! @ackernaut is this looking right? IMO maybe we can move the reply-line avatars to the left about 28px to get another word in? I couldn't find the original spec in figma, so i'll let you make the call

Copy link
Member

@ackernaut ackernaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! Thanks for looking at this. I don’t think the changes in the initial commit are the right idea, or what we need.

There is simply a parent div to the .ProseMirror div that has a tailwind class px-4. I think this was borrowed from the task cards, which do need inner padding. The comments do not.

I think the fix is to simply remove the .px-4 class, just 1 LOC. We’d need to check that it is not some global container shared with the task cards, because those do need the inner padding.

I’m also not sure we need the .min-h-10 but I’d have to check other places.

See screenshots for the markup.

Screenshot 2025-02-13 at 15 22 26
Screenshot 2025-02-13 at 15 26 09

@iamsmruti
Copy link
Contributor Author

I see, I will revisit the changes I had proposed.

@iamsmruti
Copy link
Contributor Author

Removing the px-4 impacts in a lot of places, such as

  1. The Standup Spaces
  2. Tasks
Screenshot 2025-02-14 at 11 46 35 AM

Same editor component is being used in around 10+ components. So, we need to do the impact analysis.

And min-h-10 adds some spacing in the tasks editing space and in the comments as well. If we remove it we might need to fix the padding.

@ackernaut
Copy link
Member

ackernaut commented Feb 14, 2025

Ah, good find @iamsmruti that it affects a lot of places. I wonder if there is a way to account for this in the thread* component using the editor. Or we should not add the padding to the global editor component, and apply the appropriate inner padding as needed at each specific component, that might have us touch half a dozen components or so. I’m happy to look more a little later.

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.

Fixed comment text removing indention
3 participants