2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-22 09:57:31 +00:00

Fix forum reply box styling

This commit is contained in:
nanaya 2022-08-11 21:36:13 +09:00
parent c253a787fd
commit 91072b7a84
2 changed files with 21 additions and 8 deletions

View File

@ -1,16 +1,27 @@
.forum-post-form {
display: flex;
flex-direction: column;
margin: -2px 0;
margin: 0;
gap: var(--gap);
width: @page-width;
max-width: 100%;
&__row {
margin: 2px 0;
--body-height: 400px;
--gap: 4px;
&--reply {
--body-height: 200px;
}
&__row {
&--body {
height: 400px;
height: var(--body-height);
}
&--buttons {
display: flex;
gap: var(--gap);
}
&--title {

View File

@ -22,13 +22,15 @@
</div>
<div id="reply" style="display: none; clear: both;">
<%= form_tag({:action => "create"}, :level => :member) do %>
<%= form_tag({:action => "create"}, level: :member, class: 'forum-post-form forum-post-form--reply') do %>
<%= render "shared/filter_spam" %>
<%= hidden_field "forum_post", "title", :value => "" %>
<%= hidden_field "forum_post", "parent_id", :value => @forum_post.root_id %>
<%= text_area "forum_post", "body", :rows => 20, :cols => 80, :value => "" %>
<%= text_area 'forum_post', 'body', class: 'forum-post-form__row--body', value: '' %>
<div class="forum-post-form__row forum-post-form__row--buttons">
<%= submit_tag t('.post') %>
<%= submit_to_remote "preview", t('.preview'), :url => {:action => "preview"}, :update => "preview", :success => "$('preview').show()" %>
</div>
<% end %>
</div>
</div>