From fda397777e2c8049ea0e5d7b45f8bd47066eaa7f Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 9 Dec 2023 22:50:46 +0100 Subject: [PATCH] Fix layout of "Show all questions from this user" page --- app/views/moderation/questions/_header.html.haml | 2 +- app/views/moderation/questions/show.html.haml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/moderation/questions/_header.html.haml b/app/views/moderation/questions/_header.html.haml index c8984458..e42f6a4e 100644 --- a/app/views/moderation/questions/_header.html.haml +++ b/app/views/moderation/questions/_header.html.haml @@ -1,4 +1,4 @@ -.card.question--fixed{ class: hidden ? 'question--hidden' : '', tabindex: hidden ? -1 : '', aria: { hidden: hidden } } +.card.question--sticky .container .card-body .d-flex diff --git a/app/views/moderation/questions/show.html.haml b/app/views/moderation/questions/show.html.haml index 48617bf2..934ada11 100644 --- a/app/views/moderation/questions/show.html.haml +++ b/app/views/moderation/questions/show.html.haml @@ -1,8 +1,7 @@ - provide(:title, generate_title(t(".title", author_identifier: params[:author_identifier].truncate(32)))) -= render "header", author_identifier: params[:author_identifier], hidden: false -= render "header", author_identifier: params[:author_identifier], hidden: true += render "header", author_identifier: params[:author_identifier] -.container-lg.container--main +.container-lg.question-page - @questions.each do |q| = render "shared/question", q:, type: "moderation"