Skip to content

Commit 01ca256

Browse files
authored
Revert "fix: prevent redundant assessment overview page scroll bars (#1098)" (#1119)
This reverts commit 1ff8617 (#1098) to avoid #1112. #1098 accidentally caused #1112 while fixing #1118. #1112 is a more impactful bug, so we're reverting the fix until Chromium 77 reaches stable, when we can un-revert it (since Chromium 77 incidentally fixes #1112).
1 parent 1d46d6d commit 01ca256

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

src/DetailsView/Styles/detailsview.scss

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ div.insights-file-issue-details-dialog-container {
343343
width: 100%;
344344
}
345345
.details-view-command-bar {
346-
height: $detailsViewCommandBarHeight;
347346
width: 100%;
348347
display: flex;
349348
justify-content: space-between;
@@ -352,11 +351,11 @@ div.insights-file-issue-details-dialog-container {
352351
background-color: $neutral-0;
353352
font-size: 14px;
354353
font-weight: normal;
355-
border-bottom: $detailsViewCommandBarBorderHeight solid $neutral-alpha-8;
354+
border-bottom: 1px solid $neutral-alpha-8;
356355

357356
.details-view-target-page {
358357
margin-left: 12px;
359-
padding: 8px 8px;
358+
padding: 13px 8px;
360359
display: inherit;
361360
white-space: nowrap;
362361
overflow: hidden;
@@ -435,12 +434,8 @@ div.insights-file-issue-details-dialog-container {
435434
.details-view-main-content {
436435
padding-left: 0px;
437436
padding-right: 0px;
438-
display: grid;
439-
grid-template-columns: 230px 1fr;
440-
grid-template-rows: 1fr;
441-
width: 100%;
437+
flex-grow: 1;
442438
min-height: 0;
443-
444439
.details-view-nav-pivots {
445440
> :first-child {
446441
height: $detailsViewNavPivotsHeight;
@@ -450,8 +445,7 @@ div.insights-file-issue-details-dialog-container {
450445
}
451446
}
452447
.details-view-test-nav-area {
453-
box-sizing: border-box;
454-
max-height: calc(100vh - (#{$detailsViewTotalHeaderHeight}));
448+
max-height: calc(100vh - #{$detailsViewHeaderBarHeight} - #{$detailsViewCommandBarHeight} - 12px);
455449
.ms-Nav-groupContent,
456450
.ms-Nav-navItems {
457451
margin-bottom: 0px;
@@ -828,8 +822,6 @@ div.insights-file-issue-details-dialog-container {
828822
width: 100%;
829823
padding-bottom: 1px;
830824
overflow: auto;
831-
box-sizing: border-box;
832-
max-height: calc(100vh - (#{$detailsViewTotalHeaderHeight}));
833825
> div {
834826
min-width: 600px;
835827
height: auto;

src/common/styles/common.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,8 @@ $pivotItemBorderStyle: solid !default;
9696
$detailsViewHeaderBarHeight: 40px !default;
9797
$detailsViewNavPivotsHeight: 41px !default;
9898
$detailsViewCommandBarHeight: 40px !default;
99-
$detailsViewCommandBarBorderHeight: 1px !default;
100-
$detailsViewManNavWidth: 185px !default;
10199

102-
$detailsViewTotalHeaderHeight: (#{$detailsViewCommandBarBorderHeight} + #{$detailsViewCommandBarHeight} + #{$detailsViewHeaderBarHeight});
100+
$detailsViewManNavWidth: 185px !default;
103101

104102
.header-bar,
105103
.report-header-bar {

0 commit comments

Comments
 (0)