diff --git a/app/assets/stylesheets/admin/polls/questions/options/table.scss b/app/assets/stylesheets/admin/polls/questions/options/table.scss index b260dd0f8..381f959df 100644 --- a/app/assets/stylesheets/admin/polls/questions/options/table.scss +++ b/app/assets/stylesheets/admin/polls/questions/options/table.scss @@ -1,5 +1,28 @@ .admin .poll-question-options-table { - .break { - word-break: break-word; + margin-top: $line-height; + + td { + &:not(:last-child) { + vertical-align: top; + } + + &.description { + word-break: break-word; + } + } + + th { + &.description { + @include breakpoint(medium) { + width: calc(100% * 7 / 12); + } + } + } + + td, + th { + &.association-count { + text-align: center; + } } } diff --git a/app/components/admin/poll/questions/options/table_component.html.erb b/app/components/admin/poll/questions/options/table_component.html.erb index 62aea0cfa..4f8ca31c8 100644 --- a/app/components/admin/poll/questions/options/table_component.html.erb +++ b/app/components/admin/poll/questions/options/table_component.html.erb @@ -1,12 +1,12 @@ - +
- - - - + + + + @@ -14,21 +14,21 @@ <% question.question_options.each do |option| %> - - - + + - -
<%= t("admin.questions.show.valid_answers") %>
<%= t("admin.questions.show.answers.title") %><%= t("admin.questions.show.answers.description") %><%= t("admin.questions.show.answers.images") %><%= t("admin.questions.show.answers.documents") %><%= t("admin.questions.show.answers.videos") %><%= t("admin.questions.show.answers.description") %><%= t("admin.questions.show.answers.images") %><%= t("admin.questions.show.answers.documents") %><%= t("admin.questions.show.answers.videos") %> <%= t("admin.actions.actions") %>
<%= option.title %><%= wysiwyg(option.description) %> + <%= option.title %><%= wysiwyg(option.description) %> (<%= option.images.count %>)
<%= link_to t("admin.questions.show.answers.images_list"), admin_option_images_path(option) %>
+ (<%= option.documents.count rescue 0 %>)
<%= link_to t("admin.questions.show.answers.documents_list"), admin_option_documents_path(option) %>
+ (<%= option.videos.count %>)
<%= link_to t("admin.questions.show.answers.video_list"),