Skip to content

Updating translations for search bar #369

Merged
pakb merged 1 commit intodevelopfrom
feat_BGDIINF_SB-2755_search_text
Feb 20, 2023
Merged

Updating translations for search bar #369
pakb merged 1 commit intodevelopfrom
feat_BGDIINF_SB-2755_search_text

Conversation

@procrastinatio
Copy link
Contributor

@procrastinatio procrastinatio commented Feb 6, 2023

Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

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

As it doubles down on the text present on desktop, we could get rid of this text oustide of the search bar to gain some screen space. What's your take on that?
image

@procrastinatio
Copy link
Contributor Author

OK, for me.

@pakb
Copy link
Contributor

pakb commented Feb 7, 2023

Might be a bit hard to achieve, but would be great if the search bar was centered vertically. And the TESTSITE warning placed underneath, after having centered the searchbar.
You might need to rework the HTML hierarchy to achieve that, and use some of the helper classes found here : https://getbootstrap.com/docs/5.3/utilities/flex/#align-self

@procrastinatio procrastinatio force-pushed the feat_BGDIINF_SB-2755_search_text branch 3 times, most recently from 13a1399 to fc034cc Compare February 17, 2023 08:10
@procrastinatio
Copy link
Contributor Author

Looks like it centered now. No idea why, though.

@procrastinatio procrastinatio requested a review from pakb February 17, 2023 08:13
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

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

As I've used some bootstrap Flexbox magic to center all of this, it should be easier for you yes 😉

Comment on lines +94 to +107

<style lang="scss" scoped>
@import 'src/scss/variables';

.search-bar {
position: absolute;
top: 50%;
transform: translateY(-50%);
}




</style>
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this is necessary, as the search bar is already centered by its parent (by HeaderWithSearchBar)

// On desktop we limit hte maximum size of the search bar just
// to have a better look and feel.
max-width: 800px;
position: relative;
Copy link
Contributor

Choose a reason for hiding this comment

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

this too might be unnecessarry

@procrastinatio procrastinatio force-pushed the feat_BGDIINF_SB-2755_search_text branch from d995039 to 581c2ec Compare February 20, 2023 07:58
@procrastinatio procrastinatio requested a review from pakb February 20, 2023 07:58
@pakb pakb merged commit 5e2ad1d into develop Feb 20, 2023
@pakb pakb deleted the feat_BGDIINF_SB-2755_search_text branch February 20, 2023 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants