Skip to content

Commit ed26fc0

Browse files
committed
header styling
1 parent d969ec5 commit ed26fc0

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

special-pages/pages/history/app/components/App.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body {
1919
&[data-layout-mode="reduced"] {
2020
--sidebar-width: 230px;
2121
--main-padding-left: 28px;
22-
--main-padding-right: 56px;
22+
--main-padding-right: 36px;
2323
}
2424

2525
[data-platform="windows"] & {

special-pages/pages/history/app/components/Header.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export function Header() {
1717
const domain = useComputed(() => search.value.domain);
1818
return (
1919
<div class={styles.root}>
20-
<Controls term={term} range={range} domain={domain} />
20+
<div class={styles.controls}>
21+
<Controls term={term} range={range} domain={domain} />
22+
</div>
2123
<div class={styles.search}>
2224
<SearchForm term={term} domain={domain} />
2325
</div>
@@ -83,11 +85,9 @@ function Controls({ term, range, domain }) {
8385
}
8486

8587
return (
86-
<div class={styles.controls}>
87-
<button class={styles.largeButton} onClick={onClick} aria-disabled={ariaDisabled} title={title} tabindex={0}>
88-
<Trash />
89-
<span>{buttonTxt}</span>
90-
</button>
91-
</div>
88+
<button class={styles.largeButton} onClick={onClick} aria-disabled={ariaDisabled} title={title} tabindex={0}>
89+
<Trash />
90+
<span>{buttonTxt}</span>
91+
</button>
9292
);
9393
}

special-pages/pages/history/app/components/Header.module.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.root {
22
display: flex;
3+
justify-content: space-between;
34
align-items: center;
45
gap: 8px;
56
color: var(--history-text-normal);
@@ -10,6 +11,7 @@
1011
.controls {
1112
display: flex;
1213
gap: 8px;
14+
flex-shrink: 0;
1315
}
1416

1517
.largeButton {
@@ -49,7 +51,13 @@
4951
}
5052

5153
.search {
52-
margin-left: auto;
54+
max-width: 238px;
55+
width: 100%;
56+
flex-shrink: 1;
57+
display: flex;
58+
}
59+
.form {
60+
width: 100%;
5361
}
5462
.label {
5563
color: inherit;
@@ -70,7 +78,7 @@
7078
}
7179
}
7280
.searchInput {
73-
width: 238px;
81+
width: 100%;
7482
height: 28px;
7583
border-radius: 6px;
7684
border: 0.5px solid var(--history-surface-border-color);

special-pages/pages/history/app/components/SearchForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function SearchForm({ term, domain }) {
4343
}
4444

4545
return (
46-
<form role="search" onSubmit={submit}>
46+
<form role="search" class={styles.form} onSubmit={submit}>
4747
<label class={styles.label}>
4848
<span class="sr-only">{t('search_your_history')}</span>
4949
<span class={styles.searchIcon}>

0 commit comments

Comments
 (0)