Skip to content

Commit d77f7c3

Browse files
FIX Restore correct widths to main CMS panel. (#2017)
The introduction of a new parent to .cms-main resulted in some of the CSS and JS that handles the width of the main panel being incorrect. Visually it appeared that the left and right panels were too narrow - but in reality that's just because the main was was too wide.
1 parent a02971e commit d77f7c3

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

client/dist/js/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/dist/styles/bundle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/legacy/LeftAndMain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ $.entwine('ss', function($) {
353353
var mode = options.mode;
354354
this.clearViewMode();
355355

356-
var content = this.find('.cms-content');
356+
var content = this.find('.cms-container-skip-link-target');
357357
var preview = this.find('.cms-preview');
358358

359359
content.css({'min-width': 0});

client/src/styles/legacy/_style.scss

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ html, body {
5454

5555
// Uses off screen hiding instead of `visibility:hidden;` or `display: none;`
5656
// so that the element is fully accessible
57-
top: -100px;
57+
top: -100px;
5858
left: 3px;
5959
background: $base-menu;
6060
color: $gray-700;
@@ -66,12 +66,6 @@ html, body {
6666
}
6767
}
6868

69-
.cms-container-skip-link-target {
70-
display: flex;
71-
height: 100%;
72-
width: 100vw;
73-
}
74-
7569
.cms-container--content-mode {
7670
.cms-preview {
7771
display: none;

templates/SilverStripe/Admin/LeftAndMain.ss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="cms-container" data-layout-type="custom">
2020
$Menu
2121
<main id="cms-container-skip-link-target"
22-
class="cms-container-skip-link-target"
22+
class="cms-container-skip-link-target flexbox-area-grow fill-height fill-width"
2323
tabindex="-1"
2424
>$Content</main>
2525
$PreviewPanel

0 commit comments

Comments
 (0)