workspace name

This commit is contained in:
hamid zarghami
2026-07-15 10:00:33 +03:30
parent 59048e9b5f
commit a4b263cfd7
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -2,4 +2,4 @@ VITE_TOKEN_NAME = 'admin_token'
VITE_REFRESH_TOKEN_NAME = 'admin_refresh_token'
VITE_BASE_URL = 'https://api.danakcorp.com'
#VITE_BASE_URL = 'http://10.85.127.88:3500'
VITE_BASE_URL = 'http://192.168.99.131:3500'
@@ -1,10 +1,15 @@
import { InfoCircle, Setting2, UserAdd } from "iconsax-react";
import type { FC } from "react";
const HeaderWorkspace = () => {
type HeaderWorkspaceProps = {
projectName: string;
};
const HeaderWorkspace: FC<HeaderWorkspaceProps> = ({ projectName }) => {
return (
<div className="flex justify-between items-center bg-primary h-14 sm:h-16 xl:h-[102px] px-3 sm:px-6 xl:px-8 shrink-0 gap-3">
<div className="flex gap-2 sm:gap-4 items-center min-w-0">
<div className="text-white text-base sm:text-lg xl:text-xl truncate">طراحی Dpage</div>
<div className="text-white text-base sm:text-lg xl:text-xl truncate">{projectName}</div>
<InfoCircle size={18} color="white" />
</div>
+1 -1
View File
@@ -240,7 +240,7 @@ const Workspace: FC = () => {
return (
<div className="bg-[#01347A] h-full rounded-none xl:rounded-[32px] overflow-hidden flex flex-col">
<HeaderWorkspace />
<HeaderWorkspace projectName={project?.data?.name ?? ""} />
<div className="flex-1 min-h-0 overflow-x-auto overflow-y-hidden overscroll-x-contain">
<div className="flex gap-3 sm:gap-4 xl:gap-7 px-3 sm:px-4 xl:px-8 pt-4 xl:pt-6 pb-4 xl:pb-6 h-full items-start w-max min-w-full">
{columns.map((column) => (