Skip to content

Commit

Permalink
Fix weird appearance due to button text wrapping
Browse files Browse the repository at this point in the history
Closes #626
  • Loading branch information
evansd committed Sep 4, 2024
1 parent 308e089 commit 03bc542
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions airlock/templates/file_browser/request/file.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,27 @@
{% if voting_buttons.show %}
<div class="btn-group">
{% if voting_buttons.approve.disabled %}
<button aria-pressed="true" class="btn-group__btn btn-group__btn--left btn-group__btn--active" id="file-approve-button" disabled="true">
<button aria-pressed="true" class="btn-group__btn btn-group__btn--left btn-group__btn--active whitespace-nowrap" id="file-approve-button" disabled="true">
Approve file
</button>
{% else %}
<form action="{{ voting_buttons.approve.url }}" method="POST">
{% csrf_token %}
<button aria-pressed="false" class="btn-group__btn btn-group__btn--left" id="file-approve-button" type="submit">
<button aria-pressed="false" class="btn-group__btn btn-group__btn--left whitespace-nowrap" id="file-approve-button" type="submit">
Approve file
</button>
</form>
{% endif %}


{% if voting_buttons.request_changes.disabled %}
<button aria-pressed="true" class="btn-group__btn btn-group__btn--active" id="file-request-changes-button" disabled="true">
<button aria-pressed="true" class="btn-group__btn btn-group__btn--active whitespace-nowrap" id="file-request-changes-button" disabled="true">
Request changes
</button>
{% else %}
<form action="{{ voting_buttons.request_changes.url }}" method="POST">
{% csrf_token %}
<button aria-pressed="false" class="btn-group__btn" id="file-request-changes-button" type="submit">
<button aria-pressed="false" class="btn-group__btn whitespace-nowrap" id="file-request-changes-button" type="submit">
Request changes
</button>
</form>
Expand All @@ -97,7 +97,7 @@
{% endif %}
{% endif %}

{% #modal id="group-context" button_text="View Context" %}
{% #modal id="group-context" button_text="View&nbsp;Context" %}
{% include "file_browser/request/filegroup.html" %}
{% /modal %}

Expand Down

0 comments on commit 03bc542

Please sign in to comment.