Skip to content

Commit d95655b

Browse files
committed
feat: Made header responsive.
1 parent 8fe185e commit d95655b

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
@@ -7,7 +7,6 @@
77
<meta name="theme-color" content="#000000" />
88
<link rel="apple-touch-icon" href="/logo192.png" />
99
<link rel="preconnect" href="https://hackertab.dev" />
10-
<link href="/src/styles.css" rel="stylesheet" />
1110
<script src="/startup.js"></script>
1211

1312
<% if (isWebBuild) { %>

src/components/Elements/SearchBar/SearchBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const SearchBar = () => {
2929

3030
return (
3131
<form
32-
className="order-2 flex grow items-center gap-2 rounded-full bg-white px-4 py-2 dark:bg-ht-100"
32+
className="order-none flex grow items-center gap-2 rounded-full bg-white px-4 py-2 md:order-2 dark:bg-ht-100"
3333
onSubmit={handleSubmit}>
3434
{usedSearchEngine?.default === false ? (
3535
<HiSparkles className="mx-4 size-6 rounded-full" />

src/components/Elements/UserTags/UserTags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const UserTags = () => {
66
const { userSelectedTags } = useUserPreferences()
77

88
return (
9-
<div className="order-4 flex w-full flex-wrap items-center gap-2">
9+
<div className="order-none hidden w-full flex-wrap items-center gap-2 md:order-4 md:flex">
1010
{userSelectedTags.map((tag, index) => (
1111
<span
1212
key={index}

src/components/Layout/Header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const Header = () => {
5757
return (
5858
<>
5959
<header className="sticky z-[1] mx-[1%] mt-3 mb-0 flex flex-row flex-wrap content-center items-center gap-2.5">
60-
<span className="order-1 flex items-center text-ht-900">
60+
<span className="order-none flex items-center text-ht-900 md:order-1">
6161
<i className="relative me-2">
6262
<CgTab size={24} />
6363
</i>{' '}
@@ -67,7 +67,7 @@ export const Header = () => {
6767
<Changelog />
6868
</span>
6969
<SearchBar />
70-
<div className="order-3 inline-flex flex-row content-center gap-2 gap-y-2">
70+
<div className="order-none hidden flex-row content-center gap-2 gap-y-2 md:order-3 md:inline-flex">
7171
{isDNDModeActive() && (
7272
<Button onClick={onUnpauseClicked} className="font-bold">
7373
<MdDoDisturbOff />
@@ -107,7 +107,7 @@ export const Header = () => {
107107
</div>
108108
</>
109109
) : (
110-
<AvatarPlaceholder className="mt-10 size-34 rounded-xl" />
110+
<AvatarPlaceholder className="size-full scale-85 rounded-full" />
111111
)}
112112
</CircleButton>
113113
</div>

src/features/adv/components/AdvBanner.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
padding: initial;
44
}
55
#banneradv {
6-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
6+
font-family:
7+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
78
'Helvetica Neue', Helvetica, Arial, sans-serif;
89
}
910
#banneradv {
@@ -58,7 +59,7 @@
5859
right: 0;
5960
}
6061

61-
.hidden {
62+
#banneradv .hidden {
6263
width: 0;
6364
height: 0;
6465
display: none;

0 commit comments

Comments
 (0)