mirror of
https://github.com/moebooru/moebooru
synced 2025-08-30 05:27:44 +00:00
Fix forum reply box styling
This commit is contained in:
parent
c253a787fd
commit
91072b7a84
@ -1,16 +1,27 @@
|
|||||||
.forum-post-form {
|
.forum-post-form {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin: -2px 0;
|
margin: 0;
|
||||||
|
gap: var(--gap);
|
||||||
|
|
||||||
width: @page-width;
|
width: @page-width;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|
||||||
&__row {
|
--body-height: 400px;
|
||||||
margin: 2px 0;
|
--gap: 4px;
|
||||||
|
|
||||||
|
&--reply {
|
||||||
|
--body-height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__row {
|
||||||
&--body {
|
&--body {
|
||||||
height: 400px;
|
height: var(--body-height);
|
||||||
|
}
|
||||||
|
|
||||||
|
&--buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: var(--gap);
|
||||||
}
|
}
|
||||||
|
|
||||||
&--title {
|
&--title {
|
||||||
|
@ -22,13 +22,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="reply" style="display: none; clear: both;">
|
<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" %>
|
<%= render "shared/filter_spam" %>
|
||||||
<%= hidden_field "forum_post", "title", :value => "" %>
|
<%= hidden_field "forum_post", "title", :value => "" %>
|
||||||
<%= hidden_field "forum_post", "parent_id", :value => @forum_post.root_id %>
|
<%= 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_tag t('.post') %>
|
||||||
<%= submit_to_remote "preview", t('.preview'), :url => {:action => "preview"}, :update => "preview", :success => "$('preview').show()" %>
|
<%= submit_to_remote "preview", t('.preview'), :url => {:action => "preview"}, :update => "preview", :success => "$('preview').show()" %>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user