mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
Fix forum reply box styling
This commit is contained in:
parent
c253a787fd
commit
91072b7a84
@ -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 {
|
||||
|
@ -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 => "" %>
|
||||
<%= submit_tag t('.post') %>
|
||||
<%= submit_to_remote "preview", t('.preview'), :url => {:action => "preview"}, :update => "preview", :success => "$('preview').show()" %>
|
||||
<%= 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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user