From 587aa62d8c2e802c9aca9427a83cf744a62aaa9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 8 Feb 2024 10:59:28 +0100 Subject: [PATCH] Group all hub sidebar entries last --- lib/livebook_web/live/session_live/render.ex | 36 ++++++++++++-------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/lib/livebook_web/live/session_live/render.ex b/lib/livebook_web/live/session_live/render.ex index f17315800..885400181 100644 --- a/lib/livebook_web/live/session_live/render.ex +++ b/lib/livebook_web/live/session_live/render.ex @@ -289,21 +289,40 @@ defmodule LivebookWeb.SessionLive.Render do + <%!-- Local functionality --%> + <.button_item icon="booklet-fill" label="Sections (ss)" button_attrs={["data-el-sections-list-toggle": true]} /> + <.button_item - icon="folder-open-fill" - label="Files (sf)" - button_attrs={["data-el-files-list-toggle": true]} + icon="group-fill" + label="Connected users (su)" + button_attrs={["data-el-clients-list-toggle": true]} /> + + <.button_item + icon="cpu-line" + label="Runtime settings (sr)" + button_attrs={["data-el-runtime-info-toggle": true]} + /> + + <%!-- Hub functionality --%> + <.button_item icon="lock-password-line" label="Secrets (se)" button_attrs={["data-el-secrets-list-toggle": true]} /> + + <.button_item + icon="folder-open-fill" + label="Files (sf)" + button_attrs={["data-el-files-list-toggle": true]} + /> +
<.button_item icon="rocket-line" @@ -318,17 +337,6 @@ defmodule LivebookWeb.SessionLive.Render do ]} />
- <.button_item - icon="group-fill" - label="Connected users (su)" - button_attrs={["data-el-clients-list-toggle": true]} - /> - - <.button_item - icon="cpu-line" - label="Runtime settings (sr)" - button_attrs={["data-el-runtime-info-toggle": true]} - />