|
@@ -34,10 +34,16 @@ const LayoutHeader = (props) => {
|
|
|
};
|
|
|
|
|
|
return (
|
|
|
- <header className="header bg-[#ffffff]">
|
|
|
- <div className="content flex">
|
|
|
- <div className="header-menu flex-1 h-full"></div>
|
|
|
- <div className="opt flex items-center py-2 px-6">
|
|
|
+ <header className="py-6 px-2 flex justify-between items-center bg-[#ffffff] h-8 drag">
|
|
|
+ <div>
|
|
|
+ <div className="flex items-center gap-2">
|
|
|
+ <img src="./logo.ico" className="w-4 h-4" alt="logo" />
|
|
|
+ <div>菁苗健康</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div className="flex">
|
|
|
+ <div className="flex-1 h-full"></div>
|
|
|
+ <div className="flex items-center py-2 no-drag">
|
|
|
<div
|
|
|
onClick={() => setMessageModalVisible(true)}
|
|
|
className="relative cursor-pointer p-2 hover:bg-gray-100 rounded-lg"
|
|
@@ -45,7 +51,7 @@ const LayoutHeader = (props) => {
|
|
|
<Bell className="text-gray-600 hover:bg-gray-5002" size={16} />
|
|
|
{!!notifications.length && (
|
|
|
<span className="absolute top-0 right-0 w-4 h-4 flex justify-center items-center text-xs bg-red-500 text-white rounded-full">
|
|
|
- {notifications.length}
|
|
|
+ {notifications.length > 9 ? "9+" : notifications.length}
|
|
|
</span>
|
|
|
)}
|
|
|
</div>
|
|
@@ -71,7 +77,7 @@ const LayoutHeader = (props) => {
|
|
|
className="cursor-pointer p-2 hover:bg-gray-100 rounded-lg"
|
|
|
onClick={(event) => handleTitleClick(event, "close")}
|
|
|
>
|
|
|
- <X className="cursor-pointer text-gray-600 " size={16} />
|
|
|
+ <X className="cursor-pointer text-gray-600" size={16} />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|