diff --git a/govtool/frontend/src/components/molecules/DataActionsBar.tsx b/govtool/frontend/src/components/molecules/DataActionsBar.tsx index b6672a968..88790149d 100644 --- a/govtool/frontend/src/components/molecules/DataActionsBar.tsx +++ b/govtool/frontend/src/components/molecules/DataActionsBar.tsx @@ -74,14 +74,16 @@ export const DataActionsBar: FC = ({ setChosenFilters?.((prev) => (prev ?? []).filter((k) => k !== key)); return ( - + = ({ borderColor: "#6E87D9", borderRadius: 50, boxShadow: "2px 2px 20px 0 rgba(0,0,0,0.05)", - fontSize: 11, + fontSize: { xs: 16, sm: 11 }, fontWeight: 500, height: 48, padding: "16px 24px", @@ -133,6 +135,7 @@ export const DataActionsBar: FC = ({ flex: "0 0 auto", flexShrink: 0, mt: { xs: 1, sm: 0 }, + mr: { xs: 2, sm: 0 }, }} > = ({ const [inProgressDelegationDRepData, setInProgressDelegationDRepData] = useState(undefined); - // Set initial filters and sort useEffect(() => { if (!lastPath.includes("drep_directory")) { setChosenFilters([DRepStatus.Active]); @@ -104,7 +103,7 @@ export const DRepDirectoryContent: FC = ({ baselineTotalForStatus, } = useGetDRepListPaginatedQuery( { - page: page - 1, // convert 1-based UI -> 0-based API + page: page - 1, pageSize, searchPhrase: debouncedSearchText, sorting: chosenSorting as DRepListSort, @@ -152,8 +151,13 @@ export const DRepDirectoryContent: FC = ({ AutomatedVotingOptionCurrentDelegation.drep_always_no_confidence); return ( - - {/* My delegation */} + {myDrep && !inProgressDelegation && currentDelegation && @@ -162,61 +166,65 @@ export const DRepDirectoryContent: FC = ({ - + + + )} {inProgressDelegation && inProgressDelegation !== myDRepId && inProgressDelegationDRepData && ( - + + + )} - {/* Automated voting options */} {isConnected && (
{t("dRepDirectory.delegationOptions")} - + + +
)} - {/* DRep list */} <> {t("dRepDirectory.listTitle")} @@ -266,11 +274,31 @@ export const DRepDirectoryContent: FC = ({ opacity: isPrev ? 0.5 : 1, transition: "opacity 0.2s", flex: 1, + width: "100%", + maxWidth: "100%", + overflowX: "hidden", }} > {filteredDoNotListDReps?.length === 0 && } {filteredDoNotListDReps?.map((dRep) => ( - + = ({ ))} - { - setPageSize(n); - setPage(1); - }} - /> + + { + setPageSize(n); + setPage(1); + }} + /> + );