diff --git a/app/javascript/flavours/glitch/components/navigation_portal.tsx b/app/javascript/flavours/glitch/components/navigation_portal.tsx
index 223cc24232..b10b1f28a9 100644
--- a/app/javascript/flavours/glitch/components/navigation_portal.tsx
+++ b/app/javascript/flavours/glitch/components/navigation_portal.tsx
@@ -4,22 +4,22 @@ import AccountNavigation from 'flavours/glitch/features/account/navigation';
import Trends from 'flavours/glitch/features/getting_started/containers/trends_container';
import { showTrends } from 'flavours/glitch/initial_state';
-const DefaultNavigation: React.FC = () =>
- showTrends ? (
- <>
-
+ {signedIn && (
+ <>
+
+
+
+ >
+ )}
- {trendsEnabled ? (
-
- ) : (
-
- )}
+ {trendsEnabled ? (
+
+ ) : (
+
+ )}
- {(signedIn || timelinePreview) && (
-
- )}
+ {(signedIn || timelinePreview) && (
+
+ )}
- {!signedIn && (
-
+ {!signedIn && (
+
+
+ { disabledAccountId ? : }
+
+ )}
+
+ {signedIn && (
+ <>
+
+
+
+
+
+
+
+
+
+ {!!preferencesLink &&
}
+
+
+ {canManageReports(permissions) &&
}
+ {canViewAdminDashboard(permissions) &&
}
+ >
+ )}
+
+
- { disabledAccountId ? : }
+
- )}
-
- {signedIn && (
- <>
-
-
-
-
-
-
-
-
-
- {!!preferencesLink &&
}
-
-
- {canManageReports(permissions) &&
}
- {canViewAdminDashboard(permissions) &&
}
- >
- )}
-
-
-
-
+
+
);
diff --git a/app/javascript/flavours/glitch/styles/components.scss b/app/javascript/flavours/glitch/styles/components.scss
index 0d74028801..7d580f1af2 100644
--- a/app/javascript/flavours/glitch/styles/components.scss
+++ b/app/javascript/flavours/glitch/styles/components.scss
@@ -3684,12 +3684,14 @@ $ui-header-logo-wordmark-width: 99px;
margin-top: 10px;
margin-bottom: 10px;
height: calc(100% - 20px);
- overflow-y: auto;
+ overflow: hidden;
display: flex;
flex-direction: column;
- & > a {
- flex: 0 0 auto;
+ &__menu {
+ flex: 1 1 auto;
+ min-height: 0;
+ overflow-y: auto;
}
.logo {
@@ -3700,6 +3702,36 @@ $ui-header-logo-wordmark-width: 99px;
&__logo {
margin-bottom: 12px;
}
+
+ @media screen and (height <= 710px) {
+ &__portal {
+ display: none;
+ }
+ }
+
+ @media screen and (height <= 765px) {
+ &__portal .trends__item:nth-child(n + 3) {
+ display: none;
+ }
+ }
+
+ @media screen and (height <= 820px) {
+ &__portal .trends__item:nth-child(n + 4) {
+ display: none;
+ }
+ }
+
+ @media screen and (height <= 920px) {
+ .column-link.column-link--optional {
+ display: none;
+ }
+ }
+
+ @media screen and (height <= 1040px) {
+ .list-panel {
+ display: none;
+ }
+ }
}
.navigation-panel,
@@ -4063,22 +4095,6 @@ $ui-header-logo-wordmark-width: 99px;
}
}
- @media screen and (height <= 810px) {
- .trends__item:nth-of-type(3) {
- display: none;
- }
- }
-
- @media screen and (height <= 720px) {
- .trends__item:nth-of-type(2) {
- display: none;
- }
- }
-
- @media screen and (height <= 670px) {
- display: none;
- }
-
.trends__item {
border-bottom: 0;
padding: 10px;