diff --git a/app/javascript/mastodon/components/navigation_portal.tsx b/app/javascript/mastodon/components/navigation_portal.tsx
index 46f2c0bfac..08f91ce18a 100644
--- a/app/javascript/mastodon/components/navigation_portal.tsx
+++ b/app/javascript/mastodon/components/navigation_portal.tsx
@@ -4,22 +4,22 @@ import AccountNavigation from 'mastodon/features/account/navigation';
import Trends from 'mastodon/features/getting_started/containers/trends_container';
import { showTrends } from 'mastodon/initial_state';
-const DefaultNavigation: React.FC = () =>
- showTrends ? (
- <>
-
+ {signedIn && (
+ <>
+
+
+
+ >
+ )}
- {trendsEnabled ? (
-
- ) : (
-
- )}
+ {trendsEnabled ? (
+
+ ) : (
+
+ )}
- {(signedIn || timelinePreview) && (
-
- )}
+ {(signedIn || timelinePreview) && (
+
+ )}
- {!signedIn && (
-
+ {!signedIn && (
+
+
+ { disabledAccountId ? : }
+
+ )}
+
+ {signedIn && (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+ {canManageReports(permissions) &&
}
+ {canViewAdminDashboard(permissions) &&
}
+ >
+ )}
+
+
- { disabledAccountId ? : }
+
- )}
-
- {signedIn && (
- <>
-
-
-
-
-
-
-
-
-
-
-
- {canManageReports(permissions) &&
}
- {canViewAdminDashboard(permissions) &&
}
- >
- )}
-
-
-
-
+
+
);
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss
index ea163ff9bf..847c594ae5 100644
--- a/app/javascript/styles/mastodon/components.scss
+++ b/app/javascript/styles/mastodon/components.scss
@@ -3490,12 +3490,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 {
@@ -3506,6 +3508,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,
@@ -3869,22 +3901,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;