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: Misc style fixes (for Liquid) #156

Merged
merged 5 commits into from
Jan 31, 2024
Merged

fix: Misc style fixes (for Liquid) #156

merged 5 commits into from
Jan 31, 2024

Conversation

vinnyjth
Copy link
Member

@vinnyjth vinnyjth commented Jan 31, 2024

🐛 Issue

https://3.basecamp.com/3926363/buckets/32694519/card_tables/cards/7009918938

https://3.basecamp.com/3926363/buckets/32694519/card_tables/cards/7010425769

Solution

  • Fixed search bar width, so it's no longer wider than content.
  • Fixed the ActionList feature so it no longer truncates text too early
  • Fixed margin around modal header

Testing

For testing the search bar width, you can click on any item on desktop. Here's an example:

https://apollos-web-embeds-git-cleanup-header-apollos-embeds.vercel.app/?id=in-training-for-reigning-TWVkaWFDb250ZW50SXRlbS1kODI0Yjg0ZS00MDFkLTQ0NzAtOGFlNi1mYjU3Y2U4NWUwMmI%3D

For testing the action list, click on the search bar in mobile view :)

✏️ Solution

CleanShot 2024-01-30 at 20 51 12@2x CleanShot 2024-01-30 at 20 51 00@2x CleanShot 2024-01-30 at 20 39 31@2x CleanShot 2024-01-30 at 20 38 52@2x CleanShot 2024-01-30 at 20 38 42@2x CleanShot 2024-01-31 at 08 08 27@2x

Copy link

vercel bot commented Jan 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
apollos-micro-service ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 31, 2024 3:27pm
apollos-web-embeds ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 31, 2024 3:27pm

@vinnyjth vinnyjth requested a review from nlewis84 January 31, 2024 13:09
@vinnyjth vinnyjth marked this pull request as ready for review January 31, 2024 13:10
@vinnyjth vinnyjth changed the title Cleanup header fix: Misc style fixes (for Liquid) Jan 31, 2024
Copy link
Contributor

@nlewis84 nlewis84 left a comment

Choose a reason for hiding this comment

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

Just one thing that caught my eye. Otherwise, looks good!

sm: '250px',
md: '350px',
lg: '500px',
_: '90%',
Copy link
Contributor

Choose a reason for hiding this comment

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

I have seen this pattern several times in the codebase, but I think there's something wrong with it. These widths are coming through as [object Object]

2024-01-31 08 56 08

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it's only a problem if there is only one responsive style and it should be "90%" in that case? maxWidth change up above may need that tweak also.

Copy link
Contributor

Choose a reason for hiding this comment

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

This caught my eye because I was trying to figure out why the action list item in your description picture was forcing the caret to the right when it had a long title.

Copy link
Member Author

Choose a reason for hiding this comment

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

@nlewis84 Were you able to recreate that carret being forced to the left? I think I fixed that but accidentally in dragged in an old screenshot but I'll check again :)

that's a good callout regarding the [object Object]. I think the code is working, in that the styles are being applied, but it's broken that the prop makes it all the way down to the dom. It should def be redirected into the stylesheet.

Copy link
Contributor

Choose a reason for hiding this comment

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

I could not recreate that issue 😄
Not a blocking issue. This does seem to be working.

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool! I just confirmed right now also. You're right that I don't need the responsive object and I'm cleaning that up now before we merge

@nlewis84 nlewis84 self-requested a review January 31, 2024 15:14
Copy link
Contributor

@nlewis84 nlewis84 left a comment

Choose a reason for hiding this comment

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

👍

@vinnyjth
Copy link
Member Author

cleaned up. and spotted a bug with the positioning of the arrow (it was too high) that I fixed

CleanShot 2024-01-31 at 10 22 55@2x

@vinnyjth vinnyjth enabled auto-merge (squash) January 31, 2024 15:27
@vinnyjth vinnyjth merged commit 4746e2c into main Jan 31, 2024
5 checks passed
@vinnyjth vinnyjth deleted the cleanup-header branch January 31, 2024 15:27
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