Reduce font size on menu and project infra

This commit is contained in:
Vikas Nale 2025-04-07 22:11:38 +05:30
parent 8888f9d2d8
commit 984efe207b
2 changed files with 33 additions and 30 deletions

View File

@ -35469,7 +35469,7 @@ html:not([dir="rtl"]) .menu-toggle::after {
}
.menu-vertical .menu-item .menu-link {
font-size: 0.8375rem;
font-size: 0.7375rem;
min-height: 1.825rem;
}

View File

@ -1,31 +1,34 @@
import React from "react";
const Building = ( {building, toggleBuilding, expandedBuildings, getContent} ) =>
{
const Building = ({
building,
toggleBuilding,
expandedBuildings,
getContent,
}) => {
return (
<React.Fragment key={building.id}>
<tr className="overflow-auto">
<td
colSpan="4"
className="text-start"
style={{ background: "#f0f0f0", cursor: "pointer" }}
onClick={() => toggleBuilding(building.id)}
>
<div className="row table-responsive">
<h6 style={{ marginBottom: "0px" }}>
{building.name} &nbsp;
{expandedBuildings.includes(building.id) ? (
<i className="bx bx-chevron-down"></i>
) : (
<i className="bx bx-chevron-right"></i>
)}
</h6>
</div>
</td>
</tr>
return (
<React.Fragment key={building.id}>
<tr className="overflow-auto">
<td
colSpan="4"
className="text-start"
style={{ background: "#f0f0f0", cursor: "pointer" }}
onClick={() => toggleBuilding(building.id)}
>
<div className="row table-responsive">
<h5 style={{ marginBottom: "0px" }}>
{building.name} &nbsp;
{expandedBuildings.includes(building.id) ? (
<i className="bx bx-chevron-down"></i>
) : (
<i className="bx bx-chevron-right"></i>
)}
</h5>
</div>
</td>
</tr>
{expandedBuildings.includes(building.id) && getContent(building)}
</React.Fragment>
);
};
export default Building
{expandedBuildings.includes(building.id) && getContent(building)}
</React.Fragment>
);
};
export default Building;