app/views/marksmith/shared/_editor.html.erb in marksmith-0.0.12 vs app/views/marksmith/shared/_editor.html.erb in marksmith-0.0.13
- old
+ new
@@ -13,11 +13,11 @@
local_assigns[:value] || nil
end
extra_preview_params = local_assigns[:extra_preview_params] || {}
%>
<%= content_tag :div,
- class: "ms:flex ms:flex-col ms:w-full ms:border ms:border-neutral-300 ms:rounded ms:@container ms:group ms:focus-within:border-neutral-400",
+ class: "ms:block ms:flex-col ms:w-full ms:border ms:border-neutral-300 ms:rounded ms:@container ms:focus-within:border-neutral-400",
data: {
controller: "marksmith list-continuation",
action: "
beforeinput->list-continuation#handleBeforeInput
input->list-continuation#handleInput
@@ -50,15 +50,15 @@
<%= marksmith_toolbar_button "ordered-list" %>
<%= marksmith_toolbar_button "task-list" %>
</markdown-toolbar>
</div>
<% toolbar_button_classes = "ms:cursor-pointer ms:hover:bg-neutral-100 ms:px-1 ms:py-px ms:rounded ms:text-sm" %>
- <div class="ms:border-t ms:border-neutral-300 ms:flex">
+ <div class="ms:border-t ms:w-full ms:border-neutral-300 ms:flex">
<%= content_tag :div, class: "ms:flex ms:flex-col ms:size-full", data: { marksmith_target: "fieldContainer" } do %>
<%= text_area_tag field_name, value,
id: name,
- class: class_names("ms:flex ms:flex-1 ms:rounded ms:border-none ms:p-2 ms:resize-y ms:focus:outline-none ms:font-mono ms:focus:ring-0", classes),
+ class: class_names("ms:flex ms:flex-1 ms:rounded ms:border-none ms:p-2 ms:resize-y ms:focus:outline-none ms:font-mono ms:focus:ring-0 ms:leading-normal", classes),
rows: rows,
data: {
action: "drop->marksmith#dropUpload paste->marksmith#pasteUpload",
marksmith_target: "fieldElement",
**data_attributes
@@ -66,11 +66,11 @@
disabled:,
placeholder:,
autofocus:,
style:
%>
- <div class="ms:flex ms:w-full ms:flex-1 ms:flex-grow ms:space-x-2 ms:py-1 ms:border-t ms:border-neutral-300 ms:px-2 ms:font-sans ms:text-sm">
+ <div class="ms:flex ms:flex-1 ms:flex-grow ms:space-x-2 ms:py-1 ms:border-t ms:border-neutral-300 ms:px-2 ms:font-sans ms:text-sm">
<%= link_to "https://docs.github.com/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax", target: "_blank", class: class_names("ms:flex ms:items-center ms:gap-x-2 ms:text-neutral-800 ms:no-underline", toolbar_button_classes) do %>
<%= image_tag asset_path("marksmith/svgs/markdown.svg"), class: "ms:inline ms:size-4" %> <%= t("marksmith.markdown_is_supported").humanize %>
<% end %>
<%= button_tag data: { action: "click->marksmith#buttonUpload" }, class: class_names("ms:bg-none ms:border-none ms:bg-transparent ms:text-neutral-600 ms:items-center ms:flex", toolbar_button_classes) do %>
<%= image_tag asset_path("marksmith/svgs/paperclip.svg"), class: "ms:inline ms:size-4" %> <%= t("marksmith.attach_files").humanize %>
@@ -87,7 +87,6 @@
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
<% end %>
</div>
-</div>
<% end %>