Skip to content

Commit

Permalink
Small style tweak for quick reply and inline edit forms
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Jan 5, 2025
1 parent dfbab3a commit 49c4a92
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 10 deletions.
19 changes: 19 additions & 0 deletions frontend/src/style/flavor/panels.less
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,23 @@
margin-bottom: 0;
}
}

.panel-quick-reply-footer {
display: flex;
flex-direction: row-reverse;
margin-top: @line-height-computed;

.btn {
margin-left: floor(@grid-gutter-width / 2);
}
}
}

@media screen and (max-width: @screen-xs-max) {
.panel-quick-reply {
margin-left: @grid-gutter-width * -0.5;
margin-right: @grid-gutter-width * -0.5;
border-radius: 0;
border-width: 1px 0;
}
}
9 changes: 9 additions & 0 deletions frontend/src/style/flavor/post-feed.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,12 @@
color: transparent;
}
}

.posts-feed-item-post-edit-form-footer {
display: flex;
flex-direction: row-reverse;

.btn {
margin-left: floor(@grid-gutter-width / 2);
}
}
2 changes: 1 addition & 1 deletion misago/static/misago/css/misago.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion misago/static/misago/css/misago.css.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions misago/templates/misago/quick_reply/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
{% for form in formset.get_forms %}
{% include form.template_name with form=form %}
{% endfor %}
</div>
<div class="panel-footer">
<button class="btn btn-primary" type="submit">
{% trans "Post reply" context "quick reply thread submit btn" %}
</button>
<button class="btn btn-secondary" type="submit" name="preview" value="true" formnovalidate>
{% trans "Preview" context "quick reply thread submit btn" %}
</button>
<div class="panel-quick-reply-footer">
<button class="btn btn-primary" type="submit">
{% trans "Post reply" context "quick reply thread submit btn" %}
</button>
<button class="btn btn-secondary" type="submit" name="preview" value="true" formnovalidate>
{% trans "Preview" context "quick reply thread submit btn" %}
</button>
</div>
</div>
</form>
</div>

0 comments on commit 49c4a92

Please sign in to comment.