mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-20 10:05:57 +08:00
Wrap overflowing words in plain text output
This commit is contained in:
parent
a0cc26fd47
commit
b87eb8eb28
|
@ -23,7 +23,12 @@ defmodule LivebookWeb.Output.PlainTextComponent do
|
|||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<div id={@id} class="text-gray-700 whitespace-pre-wrap" phx-update="stream" phx-no-format><span
|
||||
<div
|
||||
id={@id}
|
||||
class="text-gray-700 whitespace-pre-wrap break-words"
|
||||
phx-update="stream"
|
||||
phx-no-format
|
||||
><span
|
||||
:for={{dom_id, chunk}<- @streams.chunks} id={dom_id}><%= chunk.text %></span></div>
|
||||
"""
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue