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

Deal with overlapping of delete button with search button #41213 #3

Merged
3 changes: 2 additions & 1 deletion ui/webui/resources/br_elements/br_toolbar/br_toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
display: flex;
justify-content: center;
margin: 0;
padding: 6px 0;
padding-right:1em;
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is good to change padding from fixed pixel values to relative values. This change makes the layout more responsive.

padding-left:1em;
gap: 6px;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<style>
:host {
--search-icon-size: 20px;
--search-padding: 16px;
--search-padding: 0.5em;
--search-icon-padding: 4px;
--search-button-width: calc(var(--search-icon-size) + 2 * var(--search-padding) + 2 * var(--search-icon-padding));
position: absolute;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might worth consider to test, absolute positioning can sometimes lead to layout issues if not managed properly with respect to parent elements.

Expand Down
1 change: 1 addition & 0 deletions ui/webui/resources/cr_elements/cr_button/cr_button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class CrButtonElement extends CrLitElement {
:host {
display: inline-block;
height: min-content;
padding:2em;
}

:host(.cancel-button) {
Expand Down
Loading