Skip to content

Slack (2023): Move side rail contents to the top by MatmaRex

Screenshot of Slack (2023): Move side rail contents to the top

Details

AuthorMatmaRex

LicenseMIT

Categoryslack

Created

Updated

Code size1.4 kB

Code checksum4a6e7280

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Moves the contents of the side rail (introduced in Slack's 2023 redesign) into the copious empty space in the top navigation.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Slack (2023): Move side rail contents to the top
@version      20250410.01.10
@namespace    https://userstyles.world/user/MatmaRex
@description  Moves the contents of the side rail (introduced in Slack's 2023 redesign) into the copious empty space in the top navigation.
@author       MatmaRex
@license      MIT
==/UserStyle== */

@-moz-document domain("app.slack.com") {
:root {
  --top-nav-height: 66px;
}

.p-ia4_top_nav.p-ia4_top_nav {
  height: var(--top-nav-height) !important;
}

.p-client_workspace_wrapper {
  grid-template-areas: "p-tab-rail" "p-client-workspace" "p-client__banners" !important;
  grid-template-columns: auto !important;
  grid-template-rows: var(--top-nav-height) 1fr auto !important;
}

.p-tab_rail {
  flex-direction: row !important;
  width: fit-content !important;
  container-type: normal; /* idk what this does, but it's set to 'inline-size', which breaks 'width: fit-content' */
  height: var(--top-nav-height) !important;
  column-gap: 12px;
  padding-left: 8px;
  padding-top: 0 !important;
}

.p-client_workspace_wrapper {
  margin-top: calc( var(--top-nav-height) * -1 ) !important;
  height: 100vh !important;
}

.p-tab_rail__tab_menu {
  flex-direction: row !important;
}

.p-control_strip {
  left: auto;
  right: 18px;
  top: calc( var(--top-nav-height) / 2 - 20px );
  bottom: auto;
  flex-direction: row;
  column-gap: 16px;
  padding: 0 24px 0 0;
  width: auto;
}
}

Reviews

No reviews yet.