Reduce space between section header and first paragraph (#124)

* Reduce space between section header and first paragraph

* Remove mb-1 on markdown

Because of line height, there is already enough spacing
between the buttons and the content.
This commit is contained in:
José Valim 2021-03-30 12:35:11 +02:00 committed by GitHub
parent a1bf2d999e
commit 83a092fa38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ defmodule LivebookWeb.CellComponent do
def render_cell_content(%{cell_view: %{type: :markdown}} = assigns) do
~L"""
<div class="mb-1 flex items-center justify-end">
<div class="flex items-center justify-end">
<div class="relative z-10 flex items-center justify-end space-x-2" data-element="actions">
<span class="tooltip top" aria-label="Edit content">
<button class="icon-button" data-element="enable-insert-mode-button">

View file

@ -24,7 +24,7 @@ defmodule LivebookWeb.SectionComponent do
</span>
</div>
</div>
<div class="container py-2">
<div class="container">
<div class="flex flex-col space-y-1">
<%= for {cell_view, index} <- Enum.with_index(@section_view.cell_views) do %>
<%= live_component @socket, LivebookWeb.InsertButtonsComponent,