fix logo container in tablet and desktop size

This commit is contained in:
2025-11-25 23:03:05 +03:00
parent cc8705afdf
commit 36af620b02
5 changed files with 188 additions and 98 deletions

View File

@@ -6,8 +6,8 @@ import ProText from "components/ProText";
import { useState } from "react";
import { useGetMenuQuery } from "redux/api/others";
import { useAppSelector } from "redux/hooks";
import { darkColors, lightColors } from "ThemeConstants";
import useHeaderMenu from "./hooks/useHeaderMenu";
import "./styles.css";
const { useBreakpoint } = Grid;
@@ -55,26 +55,7 @@ export default function HeaderMenuDrawer() {
return (
<>
{!isLoadingMenu && (
<div
style={{
display: "flex",
justifyContent: "space-between",
position: "fixed",
zIndex: 999,
[isRTL ? "left" : "right"]: 0,
top: 220,
backgroundColor:
themeName === "dark"
? darkColors.secondaryBgColor
: lightColors.secondaryBgColor,
[isRTL ? "borderTopRightRadius" : "borderTopLeftRadius"]: 10,
[isRTL ? "borderBottomRightRadius" : "borderBottomLeftRadius"]: 10,
border:
themeName === "dark"
? "1px solid var(--border)"
: "1px solid var(--border)",
}}
>
<div className="header-floating-btn">
<Button
type="text"
icon={isRTL ? <NextIcon /> : <BackIcon />}

View File

@@ -113,3 +113,73 @@
:where(.darkApp) .user-icon {
background: var(--primary-dark);
}
.header-floating-btn {
display: flex;
justify-content: space-between;
position: fixed;
z-index: 999;
right: 0;
top: 220px;
background-color: var(--secondary-background);
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
border: 1px solid var(--border);
}
:where(.ant-app-rtl) .header-floating-btn {
left: 0;
right: auto;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
@media (min-width: 769px) and (max-width: 1024px) {
.header-floating-btn {
display: flex;
justify-content: space-between;
position: fixed;
z-index: 999;
right: 0;
top: 250px;
background-color: var(--secondary-background);
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
border: 1px solid var(--border);
}
:where(.ant-app-rtl) .header-floating-btn {
left: 0;
right: auto;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
}
/* Desktop devices (min-width: 1025px) */
@media (min-width: 1025px) {
.header-floating-btn {
display: flex;
justify-content: space-between;
position: fixed;
z-index: 999;
right: 0;
top: 270px;
background-color: var(--secondary-background);
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
border: 1px solid var(--border);
}
:where(.ant-app-rtl) .header-floating-btn {
left: 0;
right: auto;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
}