commit | a99c2f8247bbcf3c229aec24ad0d0f2549eaa90c | [log] [tgz] |
---|---|---|
author | Milutin Kristofic <milutin@google.com> | Mon Feb 15 22:06:31 2021 +0100 |
committer | Milutin Kristofic <milutin@google.com> | Mon Feb 15 22:06:31 2021 +0100 |
tree | a3b771689df64714a262c2e2d1b0b452f42ab2bb | |
parent | b98c1c88669539a61377cac40ba2766db10646ea [diff] |
Fix show more button Bug introduced in Change 296136, Show all button with new change summary feature flag flips collapsed on .viewer, and without feature flag collapsed is flipped on :host gr-editable-content. This is fixed by setting css on .viewer[collapsed] only when feature flag is enabled. Change-Id: I407533bf951089e1ca801152986067278187b055
diff --git a/polygerrit-ui/app/elements/shared/gr-editable-content/gr-editable-content_html.ts b/polygerrit-ui/app/elements/shared/gr-editable-content/gr-editable-content_html.ts index 6605394..73dc2d2 100644 --- a/polygerrit-ui/app/elements/shared/gr-editable-content/gr-editable-content_html.ts +++ b/polygerrit-ui/app/elements/shared/gr-editable-content/gr-editable-content_html.ts
@@ -32,7 +32,7 @@ padding: var(--spacing-m); } :host([collapsed]) .viewer, - .viewer[collapsed] { + .viewer.new-change-summary-true[collapsed] { max-height: var(--collapsed-max-height, 300px); overflow: hidden; }