Commit 3b5316da authored by Joel Einbinder's avatar Joel Einbinder Committed by Commit Bot

DevTools: Add contain strict to metrics sidebar

This should make the color picker much faster

Bug: none
Change-Id: I487616d71e430cb6c8374473bc1d84d7810f10cf
Reviewed-on: https://chromium-review.googlesource.com/807545
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Reviewed-by: default avatarPavel Feldman <pfeldman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521594}
parent 14263a93
......@@ -9,13 +9,19 @@
font-size: 10px;
text-align: center;
white-space: nowrap;
min-height: 190px;
min-height: var(--metrics-height);
display: flex;
flex-direction: column;
-webkit-align-items: center;
-webkit-justify-content: center;
}
:host {
--metrics-height: 190px;
height: var(--metrics-height);
contain: strict;
}
:host-context(.-theme-with-dark-background) .metrics {
color: #222;
}
......
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