~sircmpwn/todo.sr.ht

e2bc9f59e8ba6b2d8dcf2e27c26e96cfd5f9f038 — Drew DeVault 4 months ago 752f8fe 0.61.7
Wrap ticket title in event lists
2 files changed, 26 insertions(+), 3 deletions(-)

M scss/main.scss
M todosrht/templates/events.html
M scss/main.scss => scss/main.scss +22 -0
@@ 217,3 217,25 @@ select.form-control {
    font-style: italic;
  }
}

.event-header {
  display: flex;
  flex-direction: row;
  align-items: flex-end;

  .event & {
    margin-bottom: 0.25rem;
  }

  & > *:not(:last-child) {
    margin-right: 0.25rem;
  }

  & > span {
    min-width: 0;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
  }
}

M todosrht/templates/events.html => todosrht/templates/events.html +4 -3
@@ 2,11 2,12 @@
{% for event in events %}
{% if event.ticket %}
  <div class="event">
    <h4>
    <h4 class="event-header">
      <a
        href="{{ event.ticket|ticket_url }}"
      >#{{event.ticket.scoped_id}}</a> {{ event.ticket.title }}
      <small class="pull-right">{{ event.created | date }}</small>
      >#{{event.ticket.scoped_id}}</a>
      <span>{{ event.ticket.title }}</span>
      <small>{{ event.created | date }}</small>
    </h4>
    <p>
    {% if EventType.created in event.event_type %}