menu: updates
This commit is contained in:
@@ -120,6 +120,7 @@
|
|||||||
gap: 14px;
|
gap: 14px;
|
||||||
padding: 0.5rem 1rem 1rem 1rem;
|
padding: 0.5rem 1rem 1rem 1rem;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.categoriesContainer::-webkit-scrollbar {
|
.categoriesContainer::-webkit-scrollbar {
|
||||||
|
|||||||
@@ -265,13 +265,16 @@ export function CategoriesList({ categories }: CategoriesListProps) {
|
|||||||
borderStartEndRadius: isCategoriesSticky ? 888 : 0,
|
borderStartEndRadius: isCategoriesSticky ? 888 : 0,
|
||||||
borderEndEndRadius: isCategoriesSticky ? 888 : 0,
|
borderEndEndRadius: isCategoriesSticky ? 888 : 0,
|
||||||
borderEndStartRadius: isCategoriesSticky ? 888 : 0,
|
borderEndStartRadius: isCategoriesSticky ? 888 : 0,
|
||||||
backgroundColor: "var(--background)",
|
backgroundColor:
|
||||||
|
isCategoriesSticky && activeCategory === category.id
|
||||||
|
? "#FFB70014"
|
||||||
|
: "var(--background)",
|
||||||
}
|
}
|
||||||
: { borderRadius: 8 }),
|
: { borderRadius: 8 }),
|
||||||
width: 104,
|
width: 104,
|
||||||
height: 30,
|
height: 30,
|
||||||
marginBottom: 1,
|
marginBottom: 1,
|
||||||
border: "none"
|
border: "none",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ProText
|
<ProText
|
||||||
@@ -311,7 +314,7 @@ export function CategoriesList({ categories }: CategoriesListProps) {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{isRTL
|
{isRTL
|
||||||
? category.name || category.nameEN
|
? category.nameAR || category.name
|
||||||
: category.nameEN || category.name}
|
: category.nameEN || category.name}
|
||||||
</span>
|
</span>
|
||||||
</ProText>
|
</ProText>
|
||||||
|
|||||||
@@ -67,9 +67,12 @@ export function MenuList({ data, categoryRefs }: MenuListProps) {
|
|||||||
>
|
>
|
||||||
<ProTitle
|
<ProTitle
|
||||||
style={{
|
style={{
|
||||||
fontSize: "1.25rem",
|
fontWeight: 600,
|
||||||
fontWeight: "bold",
|
fontStyle: "SemiBold",
|
||||||
color: themeName === "dark" ? "#fff" : "#000044",
|
fontSize: "16px",
|
||||||
|
lineHeight: "140%",
|
||||||
|
letterSpacing: "0%",
|
||||||
|
color: themeName === "dark" ? "#fff" : "#070707",
|
||||||
}}
|
}}
|
||||||
level={5}
|
level={5}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import { useAppSelector } from "redux/hooks.ts";
|
|||||||
import { useParams, useNavigate } from "react-router-dom";
|
import { useParams, useNavigate } from "react-router-dom";
|
||||||
import { ProductPreviewDialog } from "pages/menu/components/ProductPreviewDialog";
|
import { ProductPreviewDialog } from "pages/menu/components/ProductPreviewDialog";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import StarIcon from "components/Icons/StarIcon";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
item: Product;
|
item: Product;
|
||||||
@@ -96,7 +95,7 @@ export default function ProductCard({ item }: Props) {
|
|||||||
letterSpacing: "0%",
|
letterSpacing: "0%",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{isRTL ? item.name : item.nameOther}
|
{isRTL ? item.nameOther : item.name}
|
||||||
</ProText>
|
</ProText>
|
||||||
{item.description && (
|
{item.description && (
|
||||||
<ProText
|
<ProText
|
||||||
|
|||||||
Reference in New Issue
Block a user