From 7b3b41386e0531fbd0afc2e2c0df8a453bfcd889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 22 Apr 2024 04:04:22 +0200 Subject: [PATCH] Fix styles for poll dates We accidentally introduced a typo in commit f497227e3 which caused the dates to be rendered outside the element where the dates styles are applied. --- app/components/polls/poll_component.html.erb | 5 ++--- spec/components/polls/poll_component_spec.rb | 8 ++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/components/polls/poll_component.html.erb b/app/components/polls/poll_component.html.erb index 9852c1b30..24594fc7e 100644 --- a/app/components/polls/poll_component.html.erb +++ b/app/components/polls/poll_component.html.erb @@ -27,13 +27,12 @@
-
<% if poll.questions.one? %>

<%= link_to_poll poll.questions.first.title, poll %>

- <%= dates %> +
<%= dates %>
<% else %>

<%= link_to_poll poll.name, poll %>

- <%= dates %> +
<%= dates %>