Skip to content

Commit e5703b0

Browse files
authored
Fix release notes sidescroll (#17412)
* Make some small adjustments * It was so simple all along
1 parent be1ca1d commit e5703b0

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

layouts/release-notes.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<body class="d-lg-flex">
88
{% include sidebar %}
99

10-
<main class="width-full">
10+
<main class="flex-1 min-width-0">
1111
{% include header %}
1212
{% include deprecation-banner %}
1313

14-
<div class="d-flex flex-items-stretch">
15-
<article class="flex-auto">
14+
<div class="d-flex">
15+
<article class="min-width-0 flex-1">
1616
<div class="d-flex flex-items-center flex-justify-between bg-white text-bold px-5 py-2">
1717
{% if prevRelease %}
1818
<a
@@ -39,8 +39,8 @@ <h1 class="f4 py-3 m-0">{{ currentVersion | version_num }} Release notes</h1>
3939

4040
<div class="markdown-body">
4141
{% for patch in releaseNotes %}
42-
<div class="js-release-notes-patch mb-10 bg-gray-light px-3 pb-6 border-bottom border-top" data-version="{{ patch.version }}">
43-
<header class="container-xl position-sticky top-0 bg-gray-light border-bottom pt-4 pb-2 js-release-notes-patch-heading" data-version="{{ patch.version }}">
42+
<div class="js-release-notes-patch mb-10 bg-gray-light pb-6 border-bottom border-top" data-version="{{ patch.version }}">
43+
<header class="container-xl position-sticky top-0 bg-gray-light border-bottom px-3 pt-4 pb-2 js-release-notes-patch-heading" data-version="{{ patch.version }}">
4444
<div class="d-flex flex-items-center">
4545
<h2 class="border-bottom-0 m-0 p-0">
4646
{{ allVersions[currentVersion].versionTitle }}.{{ patch.patchVersion }}
@@ -62,16 +62,16 @@ <h2 class="border-bottom-0 m-0 p-0">
6262
<p class="text-gray mt-1">{{ patch.date | date: "%B %d, %Y" }}</p>
6363
</header>
6464

65-
<div class="container-xl" id="{{ patch.version }}">
66-
<p class="mt-3">{{ patch.intro }}</p>
65+
<div class="container-xl px-3" id="{{ patch.version }}">
66+
<div class="mt-3">{{ patch.intro }}</div>
6767

6868
{% for section in patch.sections %}
69-
<div class="release-notes-section-{{ section[0] }} py-6 d-block d-xl-flex flex-items-baseline {% unless forloop.last %}border-bottom{% endunless %}">
70-
<div class="mr-2 flex-shrink-0 mb-5 col-12 col-xl-3">
69+
<div class="release-notes-section-{{ section[0] }} py-6 d-block d-xl-flex gutter-xl flex-items-baseline {% unless forloop.last %}border-bottom{% endunless %}">
70+
<div class="col-12 col-xl-3 mb-5">
7171
{% include 'release-notes-category-label' %}
7272
</div>
7373

74-
<ul class="flex-auto pl-5 pl-xl-0 release-notes-list">
74+
<ul class="col-12 col-xl-9 release-notes-list">
7575
{% for note in section[1] %}
7676
<li class="release-notes-list-item {% if note.heading %}list-style-none{% endif %}">
7777
{% if note.heading %}
@@ -102,7 +102,7 @@ <h4 id="{{ slug }}" class="release-notes-section-heading text-uppercase text-bol
102102

103103
<aside
104104
class="markdown-body position-sticky top-0 d-none d-md-block border-left no-print bg-white flex-shrink-0"
105-
style="width: 300px; height: 100vh;"
105+
style="width: 260px; height: 100vh;"
106106
>
107107
<nav class="height-full overflow-auto">
108108
<ul class="list-style-none pl-0 text-bold">

0 commit comments

Comments
 (0)