Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Merge branch 'staging' into feat/creator-tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
hirbod committed Oct 13, 2023
2 parents 45038ab + 500737a commit 4e13dba
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions packages/app/components/header/header.md.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ const NotificationsInHeader = () => {
return (
<Popover.Root modal={true} open={isOpen} onOpenChange={setIsOpen}>
<Popover.Trigger>
<View
tw={[
"mt-2 h-[50px] flex-row items-center rounded-2xl pl-4 transition-all hover:bg-gray-50 hover:dark:bg-gray-900",
].join(" ")}
>
<View tw="mt-2 h-12 flex-row items-center rounded-2xl pl-4 transition-all hover:bg-gray-50 hover:dark:bg-gray-900">
<View>
<Icon color={isDark ? "#fff" : "#000"} width={24} height={24} />
<View
Expand Down Expand Up @@ -159,11 +155,7 @@ const SearchInHeader = () => {
return (
<Popover.Root modal={true} open={isOpen} onOpenChange={setIsOpen}>
<Popover.Trigger>
<View
tw={[
"mt-2 h-[50px] flex-row items-center rounded-2xl pl-4 transition-all hover:bg-gray-50 hover:dark:bg-gray-900",
].join(" ")}
>
<View tw="mt-2 h-12 flex-row items-center rounded-2xl pl-4 transition-all hover:bg-gray-50 hover:dark:bg-gray-900">
<Icon color={isDark ? "#fff" : "#000"} width={24} height={24} />
<Text tw={["ml-4 text-lg text-black dark:text-white"]}>Search</Text>
</View>
Expand Down Expand Up @@ -250,7 +242,7 @@ export const HeaderMd = withColorScheme(() => {
const iconColor = isDark ? "#fff" : "#000";
const { setColorScheme } = useColorScheme();
const { logout } = useAuth();
const { height } = useWindowDimensions();
const { height: screenHeight } = useWindowDimensions();
const HOME_ROUTES = useMemo(
() =>
[
Expand Down Expand Up @@ -323,7 +315,13 @@ export const HeaderMd = withColorScheme(() => {
return (
<View tw="fixed top-0 h-full bg-white pl-2 dark:bg-black">
<View tw="h-full min-h-screen w-60 overflow-y-auto pl-4">
<Link href="/" tw="flex-row items-center pt-8">
<Link
href="/"
tw="flex-row items-center"
style={{
paddingTop: screenHeight > 860 ? 40 : 24,
}}
>
<ShowtimeBrand color={iconColor} width={19 * (84 / 16)} height={19} />
</Link>
<View tw="-ml-4 mt-5 w-48 justify-center">
Expand Down Expand Up @@ -361,7 +359,7 @@ export const HeaderMd = withColorScheme(() => {
<DropdownMenuTrigger>
<View
tw={[
"mt-2 h-[50px] cursor-pointer flex-row items-center rounded-2xl pl-4 transition-all hover:bg-gray-50 hover:dark:bg-gray-900",
"mt-2 h-12 cursor-pointer flex-row items-center rounded-2xl pl-4 transition-all hover:bg-gray-50 hover:dark:bg-gray-900",
]}
>
<Menu width={24} height={24} color={iconColor} />
Expand All @@ -373,7 +371,7 @@ export const HeaderMd = withColorScheme(() => {

<DropdownMenuContent
align="center"
tw="w-50"
style={{ minWidth: 150 }}
disableBlurEffect
side="bottom"
sideOffset={0}
Expand Down Expand Up @@ -597,7 +595,7 @@ export const HeaderMd = withColorScheme(() => {
<View
tw={[
"bottom-0 mt-4 inline-block",
height > 840 ? "absolute" : "relative",
screenHeight > 840 ? "absolute" : "relative",
]}
style={{}}
>
Expand Down

0 comments on commit 4e13dba

Please sign in to comment.