Adding Page-min-h and css to decrease the size of scrollbar.
This commit is contained in:
parent
abb383afd8
commit
4f94c040ca
File diff suppressed because it is too large
Load Diff
@ -26,10 +26,10 @@ const Header = () => {
|
||||
const dispatch = useDispatch();
|
||||
const { data, loading } = useMaster();
|
||||
const navigate = useNavigate();
|
||||
const {onOpen} = useAuthModal()
|
||||
const { onOpen:changePass } = useModal("ChangePassword");
|
||||
const { onOpen } = useAuthModal()
|
||||
const { onOpen: changePass } = useModal("ChangePassword");
|
||||
const HasManageProjectPermission = useHasUserPermission(MANAGE_PROJECT);
|
||||
const { mutate : logout,isPending:logouting} = useLogout()
|
||||
const { mutate: logout, isPending: logouting } = useLogout()
|
||||
|
||||
const isDashboardPath =
|
||||
/^\/dashboard$/.test(location.pathname) || /^\/$/.test(location.pathname);
|
||||
@ -54,7 +54,7 @@ const Header = () => {
|
||||
/^\/advance-payment(\/[0-9a-fA-F-]{36})?$/.test(pathname);
|
||||
|
||||
|
||||
return !(isDirectoryPath || isProfilePage || isExpensePage || isPaymentRequest || isRecurringExpense || isAdvancePayment ||isServiceProjectPage || isAdvancePayment1);
|
||||
return !(isDirectoryPath || isProfilePage || isExpensePage || isPaymentRequest || isRecurringExpense || isAdvancePayment || isServiceProjectPage || isAdvancePayment1);
|
||||
};
|
||||
const allowedProjectStatusIds = [
|
||||
"603e994b-a27f-4e5d-a251-f3d69b0498ba",
|
||||
@ -218,10 +218,10 @@ const Header = () => {
|
||||
projectsForDropdown &&
|
||||
projectsForDropdown.length > 0 && (
|
||||
<ul
|
||||
className="dropdown-menu"
|
||||
className="dropdown-menu custom-scrollbar"
|
||||
style={{ overflow: "auto", maxHeight: "300px" }}
|
||||
>
|
||||
{(isDashboardPath|| isCollectionPath) &&(
|
||||
{(isDashboardPath || isCollectionPath) && (
|
||||
<li>
|
||||
<button
|
||||
className="dropdown-item"
|
||||
@ -402,7 +402,7 @@ const Header = () => {
|
||||
<li>
|
||||
<div className="dropdown-divider"></div>
|
||||
</li>
|
||||
<li onClick={()=>onOpen()}>
|
||||
<li onClick={() => onOpen()}>
|
||||
{" "}
|
||||
<a
|
||||
className="dropdown-item cusor-pointer"
|
||||
@ -448,9 +448,9 @@ const Header = () => {
|
||||
<a
|
||||
aria-label="click to log out"
|
||||
className="dropdown-item cusor-pointer"
|
||||
onClick={()=>logout()}
|
||||
onClick={() => logout()}
|
||||
>
|
||||
{logouting ? "Please Wait":<> <i className="bx bx-log-out me-2"></i>
|
||||
{logouting ? "Please Wait" : <> <i className="bx bx-log-out me-2"></i>
|
||||
<span className="align-middle">SignOut</span></>}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@ -97,7 +97,7 @@ const DailyProgrssReport = () => {
|
||||
]}
|
||||
/>
|
||||
|
||||
<div className="card card-fullscreen p-5">
|
||||
<div className="card page-min-h p-5">
|
||||
{data?.length > 0 && (
|
||||
<div className="col-sm-4 col-md-3 col-12 text-start">
|
||||
<AppFormController
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user