diff --git a/app/javascript/mastodon/features/compose/components/compose_form.jsx b/app/javascript/mastodon/features/compose/components/compose_form.jsx index a646a7efae..2cc1f7915a 100644 --- a/app/javascript/mastodon/features/compose/components/compose_form.jsx +++ b/app/javascript/mastodon/features/compose/components/compose_form.jsx @@ -248,7 +248,15 @@ class ComposeForm extends ImmutablePureComponent { const { intl, onPaste, onDrop, autoFocus, withoutNavigation, maxChars, isSubmitting } = this.props; return ( -
+ {!withoutNavigation && } diff --git a/app/javascript/mastodon/features/compose/components/search.tsx b/app/javascript/mastodon/features/compose/components/search.tsx index c2855e8cb5..9c7baf5021 100644 --- a/app/javascript/mastodon/features/compose/components/search.tsx +++ b/app/javascript/mastodon/features/compose/components/search.tsx @@ -547,11 +547,15 @@ export const Search: React.FC<{ const searchOptionsHeading = useId(); return ( - + = ({ multiColumn }) => { if (multiColumn) { return ( -
-
-
+
{children}
-
+ @@ -121,7 +121,7 @@ export const ColumnsArea = forwardRef< } return ( -
-
+ ); }); diff --git a/app/javascript/mastodon/features/ui/components/navigation_bar.tsx b/app/javascript/mastodon/features/ui/components/navigation_bar.tsx index ec45e395b2..c3f9373966 100644 --- a/app/javascript/mastodon/features/ui/components/navigation_bar.tsx +++ b/app/javascript/mastodon/features/ui/components/navigation_bar.tsx @@ -31,6 +31,10 @@ export const messages = defineMessages({ defaultMessage: 'Notifications', }, menu: { id: 'tabs_bar.menu', defaultMessage: 'Menu' }, + advancedUiQuickLinks: { + id: 'tabs_bar.quick_links', + defaultMessage: 'Quick links', + }, }); const IconLabelButton: React.FC<{ diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index 057b235576..df12731eda 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -908,6 +908,7 @@ "navigation_bar.live_feed_local": "Live feed (local)", "navigation_bar.live_feed_public": "Live feed (public)", "navigation_bar.logout": "Logout", + "navigation_bar.main": "Main", "navigation_bar.moderation": "Moderation", "navigation_bar.more": "More", "navigation_bar.mutes": "Muted users", @@ -1305,6 +1306,7 @@ "tabs_bar.menu": "Menu", "tabs_bar.notifications": "Notifications", "tabs_bar.publish": "New Post", + "tabs_bar.quick_links": "Quick links", "tabs_bar.search": "Search", "tag.remove": "Remove", "terms_of_service.effective_as_of": "Effective as of {date}", diff --git a/app/javascript/styles/mastodon/admin.scss b/app/javascript/styles/mastodon/admin.scss index 887f14360a..0abcefaa4b 100644 --- a/app/javascript/styles/mastodon/admin.scss +++ b/app/javascript/styles/mastodon/admin.scss @@ -411,7 +411,7 @@ $content-width: 840px; display: flex; } - & > ul { + & > nav > ul { display: none; &.visible { diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml index 039ca88f7e..4bb05b892a 100644 --- a/app/views/layouts/admin.html.haml +++ b/app/views/layouts/admin.html.haml @@ -8,7 +8,7 @@ - content_for :content do %a.navigation-skip-link{ href: '#content' }= t('admin.skip_to_content') .admin-wrapper - %nav.sidebar-wrapper + %header.sidebar-wrapper .sidebar-wrapper__inner .sidebar = link_to root_path do @@ -23,7 +23,8 @@ = material_symbol 'menu' = material_symbol 'close' - = render_navigation + %nav + = render_navigation %main.content-wrapper#content .content diff --git a/spec/system/unlogged_spec.rb b/spec/system/unlogged_spec.rb index 26d1bd4542..90db5fb40e 100644 --- a/spec/system/unlogged_spec.rb +++ b/spec/system/unlogged_spec.rb @@ -12,6 +12,6 @@ RSpec.describe 'UnloggedBrowsing', :js, :streaming do it 'loads the home page' do expect(subject).to have_css('div.app-holder') - expect(subject).to have_css('div.columns-area__panels__main') + expect(subject).to have_css('main.columns-area__panels__main') end end