1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Comments: Further range of content reference ux improvements

- Added reference indicator to comment create form.
  - Added remove action.
- Extracted reference text to translations.
- Changed reference hash to be text-based instead of HTML based.
- Added reference display for newly added comments.
- Handled reference marker delete on comment delete.
This commit is contained in:
Dan Brown
2025-05-01 17:22:12 +01:00
parent 15c79c38db
commit c82fa33210
9 changed files with 74 additions and 28 deletions

View File

@@ -12,6 +12,16 @@
</div>
</div>
</div>
<div refs="page-comments@reference-row" hidden class="primary-background-light text-muted px-s py-xs">
<div class="grid left-focus v-center">
<div>
<a refs="page-comments@formReferenceLink" href="#">{{ trans('entities.comment_reference') }}</a>
</div>
<div class="text-right">
<button refs="page-comments@remove-reference-button" class="text-button">{{ trans('common.remove') }}</button>
</div>
</div>
</div>
<div class="content px-s pt-s">
<form refs="page-comments@form" novalidate>