Commit 41b6c3de authored by Alex Danilo's avatar Alex Danilo Committed by Commit Bot

Force expanded panel display to 400px

Sets the CSS width for an expanded panel view to 400px in all cases.

Without this change, the feedback panel widths can oscillate between a width based
on the text in child panels and the maximum size of 400px when file operations
start and end so this locks the width to get rid of that oscillation.

Bug: 989154
Change-Id: I2902910b6e4436257f07e3b58c794c829d27cdac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1735797
Commit-Queue: Alex Danilo <adanilo@chromium.org>
Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#684231}
parent 2f02a222
...@@ -107,12 +107,12 @@ class DisplayPanel extends HTMLElement { ...@@ -107,12 +107,12 @@ class DisplayPanel extends HTMLElement {
} }
75% { 75% {
max-height: calc(192px + 28px); max-height: calc(192px + 28px);
max-width: 400px; width: 400px;
opacity: 0; opacity: 0;
} }
100% { 100% {
max-height: calc(192px + 28px); max-height: calc(192px + 28px);
max-width: 400px; width: 400px;
opacity: 1; opacity: 1;
} }
} }
...@@ -136,6 +136,7 @@ class DisplayPanel extends HTMLElement { ...@@ -136,6 +136,7 @@ class DisplayPanel extends HTMLElement {
} }
.expanded { .expanded {
animation: setcollapse 200ms forwards; animation: setcollapse 200ms forwards;
width: 400px;
} }
.collapsed { .collapsed {
animation: setexpand 200ms forwards; animation: setexpand 200ms forwards;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment