Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

improve displaying of search results on small screens #923

Closed
wants to merge 4 commits into from

Conversation

devnook
Copy link
Contributor

@devnook devnook commented Jun 25, 2021

Fixes #917

@netlify
Copy link

netlify bot commented Jun 25, 2021

✔️ Deploy Preview for developer-chrome-com ready!

🔨 Explore the source changes: 155b299

🔍 Inspect the deploy log: https://app.netlify.com/sites/developer-chrome-com/deploys/60f8db663c91f500079039df

😎 Browse the preview: https://deploy-preview-923--developer-chrome-com.netlify.app

@pullapprove pullapprove bot requested review from MichaelSolati and samthor June 25, 2021 09:44
@google-cla google-cla bot added the cla: yes label Jun 25, 2021
@robdodson
Copy link
Contributor

I think there might be a couple of issues.

If you type "qq" into the search box, it should show you the what's new in chrome post. On desktop, the thumbnail is pushed offscreen to the right, but it should be next to the text.

On mobile, the thumbnail is centered underneath the text, but it should either be to the right of the text, or, if there's not enough room, we should consider hiding the thumbnail on mobile.

@devnook
Copy link
Contributor Author

devnook commented Jul 6, 2021

PTAL

@@ -103,12 +103,15 @@ search-box[active] {

.search-box__snippet {
color: var(--color-secondary-text);
word-break: break-all;
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove this. Otherwise it causes words to wrap in strange ways like breaking at the last letter. The words seem to wrap correctly now with the margin that you added.

}

.search-box__thumbnail {
margin-left: get-size(200);
display: none;
margin: get-size(300) auto 0 auto;
Copy link
Contributor

Choose a reason for hiding this comment

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

should the margin be 0 if you're hiding the thumbnail?

devnook and others added 2 commits July 22, 2021 04:43
Co-authored-by: Rob Dodson <robdodson@users.noreply.github.com>
Co-authored-by: Rob Dodson <robdodson@users.noreply.github.com>
@samthor
Copy link
Contributor

samthor commented Aug 19, 2021

I fixed this in #1148.

@samthor samthor closed this Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search results are overflowing.
3 participants