diff --git a/assets/css/js_interop.css b/assets/css/js_interop.css index 079d91ea3..144a25881 100644 --- a/assets/css/js_interop.css +++ b/assets/css/js_interop.css @@ -60,6 +60,17 @@ solely client-side operations. @apply hidden; } +[data-el-section][data-js-collapsed] [data-el-section-collapse-button], +[data-el-section]:not([data-js-collapsed]) + [data-el-section-headline]:not(:hover):not([data-js-focused]) + [data-el-section-collapse-button], +[data-el-section]:not([data-js-collapsed]) [data-el-section-expand-button], +[data-el-section][data-js-collapsed] > [data-el-section-content], +[data-el-section]:not([data-js-collapsed]) + > [data-el-section-subheadline-collapsed] { + @apply hidden; +} + [data-el-cell][data-js-focused] { @apply border-blue-300 border-opacity-100; } diff --git a/lib/livebook_web/live/session_live/section_component.ex b/lib/livebook_web/live/session_live/section_component.ex index 98c542dfb..0b735d1c8 100644 --- a/lib/livebook_web/live/session_live/section_component.ex +++ b/lib/livebook_web/live/session_live/section_component.ex @@ -1,11 +1,13 @@ defmodule LivebookWeb.SessionLive.SectionComponent do use LivebookWeb, :live_component + alias Phoenix.LiveView.JS + def render(assigns) do ~H"""
+
+ + +

<%= @section_view.name %>