Skip to content

Commit

Permalink
Fix layout issues on scheduled reports page (#3930)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Klopper <[email protected]>
  • Loading branch information
TwistMeister and underdarknl authored Dec 4, 2024
1 parent 21d7c9b commit 09b2228
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion rocky/assets/css/components/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ table tr.expando-row td {
}

table:not(.nowrap) tbody td:not(.nowrap) {
a {
a:not(.button) {
line-break: break-all;
display: inline-block; /* Needed to be able to use max-width */
max-width: 20rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,21 @@
</table>
{% endif %}
<div class="horizontal-view toolbar">
{% if schedule.enabled %}
{% include "report_overview/modal_partials/enable_disable_schedule_modal.html" with modal_id="disable-schedule-modal-"|add:schedule.schedule_id %}
<div class="button-container">
{% if schedule.enabled %}
{% include "report_overview/modal_partials/enable_disable_schedule_modal.html" with modal_id="disable-schedule-modal-"|add:schedule.schedule_id %}

<a class="button ghost"
href="{% ooi_url "ooi_edit" schedule.recipe organization.code %}"><span aria-hidden="true" class="icon ti-edit action-button"></span>{% translate "Edit report recipe" %}</a>
<a class="button ghost destructive"
href="#disable-schedule-modal-{{ schedule.schedule_id }}">{% translate "Disable schedule" %}</a>
{% else %}
<a class="button"
href="{% url "enable_disable_scheduled_reports" organization.code %}?schedule_id={{ schedule.schedule_id }}">{% translate "Enable schedule" %}</a>
<a class="button ghost"
href="{% ooi_url "ooi_edit" schedule.recipe organization.code %}"><span aria-hidden="true" class="icon ti-edit action-button"></span>{% translate "Edit report recipe" %}</a>
{% endif %}
<a class="button ghost"
href="{% ooi_url "ooi_edit" schedule.recipe organization.code %}"><span aria-hidden="true" class="icon ti-edit action-button"></span>{% translate "Edit report recipe" %}</a>
<a class="button ghost destructive"
href="#disable-schedule-modal-{{ schedule.schedule_id }}">{% translate "Disable schedule" %}</a>
{% else %}
<a class="button"
href="{% url "enable_disable_scheduled_reports" organization.code %}?schedule_id={{ schedule.schedule_id }}">{% translate "Enable schedule" %}</a>
<a class="button ghost"
href="{% ooi_url "ooi_edit" schedule.recipe organization.code %}"><span aria-hidden="true" class="icon ti-edit action-button"></span>{% translate "Edit report recipe" %}</a>
{% endif %}
</div>
</div>
</td>
</tr>
Expand Down

0 comments on commit 09b2228

Please sign in to comment.