Skip to content

Commit

Permalink
Apply same container width for all helpdesk pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault authored Dec 20, 2024
1 parent 122be4b commit 5ed9f50
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions css/includes/components/_utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@
.w-fit-content {
width: fit-content !important;
}

.force-full-width {
width: 100vw;
margin-left: calc(50% - 50vw);
}
2 changes: 1 addition & 1 deletion templates/layout/parts/page_header.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,5 @@
{% endif %}

<div class="page-wrapper mb-0">
<div class="page-body container-fluid">
<div class="page-body container-fluid {{ is_helpdesk ? 'container-xl' : '' }}">
<main role="main" id="page" class="legacy">
5 changes: 4 additions & 1 deletion templates/pages/helpdesk/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
{% extends "layout/page_skeleton.html.twig" %}

{% block content %}
<div class="d-flex flex-column helpdesk-home-container">
{# We override the parent width using .force-full-width because we need our background images and colors to bleed
through and use all the available width. The content is still using the correct width by redefining manually the
container size for each sections of the page using container-xl/container-narrow classes#}
<div class="d-flex flex-column helpdesk-home-container force-full-width">
<div class="search-banner">
<div class="container-narrow">
<h1 class="text-dark text-center">
Expand Down

0 comments on commit 5ed9f50

Please sign in to comment.