Skip to content

Commit 4e0f73e

Browse files
committed
fix(#3055, #3057): Top nav adjustments
1 parent 716d9f4 commit 4e0f73e

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ changes.
1414

1515
### Fixed
1616

17+
- Fix responsive error on menu [Issue 3055](https://github.com/IntersectMBO/govtool/issues/3055)
18+
- Fix wrong placement of nav items in disconnected menu [Issue 3057](https://github.com/IntersectMBO/govtool/issues/3057)
19+
1720
### Changed
1821

1922
### Removed
2023

2124
## [v2.0.12](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.12) 2025-02-21
2225

23-
2426
### Added
2527

2628
- Add metadata url and hash to drep details [Issue 2911](https://github.com/IntersectMBO/govtool/issues/2911)

govtool/frontend/src/components/organisms/TopNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export const TopNav = ({ isConnectButton = true }) => {
179179
src={IMAGES.appLogo}
180180
/>
181181
</NavLink>
182-
{screenWidth >= 1024 ? renderDesktopNav() : renderMobileNav()}
182+
{screenWidth >= 1145 ? renderDesktopNav() : renderMobileNav()}
183183
</Box>
184184
</AppBar>
185185
);

govtool/frontend/src/consts/navItems.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ export const NAV_ITEMS = [
2424
navTo: PATHS.dRepDirectory,
2525
label: i18n.t("dRepDirectory.title"),
2626
},
27+
{
28+
dataTestId: "proposed-governance-actions-link",
29+
navTo: PDF_PATHS.proposalDiscussion,
30+
label: i18n.t("proposalDiscussion.title"),
31+
newTabLink: null,
32+
},
2733
{
2834
dataTestId: "governance-actions-link",
2935
navTo: PATHS.governanceActions,
@@ -36,12 +42,6 @@ export const NAV_ITEMS = [
3642
navTo: OUTCOMES_PATHS.governanceActionsOutcomes,
3743
newTabLink: null,
3844
},
39-
{
40-
dataTestId: "proposed-governance-actions-link",
41-
navTo: PDF_PATHS.proposalDiscussion,
42-
label: i18n.t("proposalDiscussion.title"),
43-
newTabLink: null,
44-
},
4545
{
4646
dataTestId: "guides-link",
4747
navTo: "",

0 commit comments

Comments
 (0)