From e52085246f86809ec32f3edc5be226ce15b03457 Mon Sep 17 00:00:00 2001 From: mayaeh Date: Sun, 13 Mar 2022 12:51:09 +0900 Subject: Add menu column of explore to getting-started (#17755) --- app/javascript/mastodon/features/getting_started/index.js | 4 +++- app/javascript/mastodon/locales/defaultMessages.json | 4 ++++ app/javascript/mastodon/locales/en.json | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'app/javascript') diff --git a/app/javascript/mastodon/features/getting_started/index.js b/app/javascript/mastodon/features/getting_started/index.js index 07572c530..2b17f667f 100644 --- a/app/javascript/mastodon/features/getting_started/index.js +++ b/app/javascript/mastodon/features/getting_started/index.js @@ -21,6 +21,7 @@ const messages = defineMessages({ public_timeline: { id: 'navigation_bar.public_timeline', defaultMessage: 'Federated timeline' }, settings_subheading: { id: 'column_subheading.settings', defaultMessage: 'Settings' }, community_timeline: { id: 'navigation_bar.community_timeline', defaultMessage: 'Local timeline' }, + explore: { id: 'navigation_bar.explore', defaultMessage: 'Explore' }, direct: { id: 'navigation_bar.direct', defaultMessage: 'Direct messages' }, bookmarks: { id: 'navigation_bar.bookmarks', defaultMessage: 'Bookmarks' }, preferences: { id: 'navigation_bar.preferences', defaultMessage: 'Preferences' }, @@ -99,9 +100,10 @@ class GettingStarted extends ImmutablePureComponent { , , , + , ); - height += 34 + 48*2; + height += 34 + 48*3; navItems.push( , diff --git a/app/javascript/mastodon/locales/defaultMessages.json b/app/javascript/mastodon/locales/defaultMessages.json index a6cd78599..a93f3260e 100644 --- a/app/javascript/mastodon/locales/defaultMessages.json +++ b/app/javascript/mastodon/locales/defaultMessages.json @@ -1956,6 +1956,10 @@ "defaultMessage": "Local timeline", "id": "navigation_bar.community_timeline" }, + { + "defaultMessage": "Explore", + "id": "navigation_bar.explore" + }, { "defaultMessage": "Direct messages", "id": "navigation_bar.direct" diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index f19b72aa1..910c68672 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -294,6 +294,7 @@ "navigation_bar.discover": "Discover", "navigation_bar.domain_blocks": "Blocked domains", "navigation_bar.edit_profile": "Edit profile", + "navigation_bar.explore": "Explore", "navigation_bar.favourites": "Favourites", "navigation_bar.filters": "Muted words", "navigation_bar.follow_requests": "Follow requests", -- cgit From e38a01c41add3dbbb0a9a7a68e591ce8313aa13a Mon Sep 17 00:00:00 2001 From: mayaeh Date: Sun, 13 Mar 2022 13:15:19 +0900 Subject: Change the "Explore" icon from fa-globe to fa-hashtag (#17757) --- app/javascript/mastodon/features/explore/index.js | 2 +- app/javascript/mastodon/features/getting_started/index.js | 2 +- app/javascript/mastodon/features/ui/components/navigation_panel.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/javascript') diff --git a/app/javascript/mastodon/features/explore/index.js b/app/javascript/mastodon/features/explore/index.js index ddacf5812..8082f2d99 100644 --- a/app/javascript/mastodon/features/explore/index.js +++ b/app/javascript/mastodon/features/explore/index.js @@ -56,7 +56,7 @@ class Explore extends React.PureComponent { ) : ( , , , - , + , ); height += 34 + 48*3; diff --git a/app/javascript/mastodon/features/ui/components/navigation_panel.js b/app/javascript/mastodon/features/ui/components/navigation_panel.js index 51a0757bc..eb42115b7 100644 --- a/app/javascript/mastodon/features/ui/components/navigation_panel.js +++ b/app/javascript/mastodon/features/ui/components/navigation_panel.js @@ -13,7 +13,7 @@ const NavigationPanel = () => ( - + -- cgit From fa47c37f13c7fa4d38edd83818f681cf99d6ea9c Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 13 Mar 2022 09:48:39 +0100 Subject: Fix public timelines being inaccessible on one stage of responsive layout in web UI (#17760) Fix #17756 --- app/javascript/mastodon/features/ui/components/tabs_bar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/javascript') diff --git a/app/javascript/mastodon/features/ui/components/tabs_bar.js b/app/javascript/mastodon/features/ui/components/tabs_bar.js index 195403fd3..55668cab6 100644 --- a/app/javascript/mastodon/features/ui/components/tabs_bar.js +++ b/app/javascript/mastodon/features/ui/components/tabs_bar.js @@ -10,9 +10,9 @@ import NotificationsCounterIcon from './notifications_counter_icon'; export const links = [ , , - , - , - , + , + , + , , ]; -- cgit From 71e7d384216a2300451bc6dc3b45f642e07298ef Mon Sep 17 00:00:00 2001 From: mayaeh Date: Sun, 13 Mar 2022 23:01:30 +0900 Subject: Changed to display the "Explore" in "Getting-Started" at all resolutions (#17762) --- app/javascript/mastodon/features/getting_started/index.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'app/javascript') diff --git a/app/javascript/mastodon/features/getting_started/index.js b/app/javascript/mastodon/features/getting_started/index.js index 2a3b7c33c..a9000a3d9 100644 --- a/app/javascript/mastodon/features/getting_started/index.js +++ b/app/javascript/mastodon/features/getting_started/index.js @@ -98,12 +98,22 @@ class GettingStarted extends ImmutablePureComponent { if (multiColumn) { navItems.push( , + ); + height += 34; + } + + navItems.push( + , + ); + height += 48; + + if (multiColumn) { + navItems.push( , , - , ); - height += 34 + 48*3; + height += 48*2; navItems.push( , -- cgit