Files
react-native-devtools-frontend/front_end/source_frame/imageView.css
T
Eric Leese 5790290bf4 Revert "Fix: no space at the bottom of the image in ImageView"
This reverts commit 6798d1b9dc.

Reason for revert: Tree is red, failing webkit_unit_tests_ng

Original change's description:
> Fix: no space at the bottom of the image in ImageView
>
> In addition:
> - The smaller height picture is centered vertically.
> - Fix toolbar text cannot be selected.
>
> After: https://i.imgur.com/osJszTj.png
>
> Bug: 1157466
> Change-Id: I415d24a96586030b726f6e4fa3cf22425aa99987
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2583955
> Reviewed-by: Changhao Han <changhaohan@chromium.org>
> Commit-Queue: Changhao Han <changhaohan@chromium.org>

TBR=changhaohan@chromium.org,yiorsi@gmail.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 1157466
Change-Id: If969083af047af0d4f3adbaadaaa823850b17bce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2587730
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Changhao Han <changhaohan@chromium.org>
2020-12-14 10:48:36 +00:00

24 lines
524 B
CSS

/*
* Copyright (c) 2014 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
.image-view {
overflow: auto;
}
.image-view > .image {
padding: 20px 20px 10px 20px;
text-align: center;
}
.image-view img.resource-image-view {
max-width: 100%;
max-height: 1000px;
background-image: url(Images/checker.png);
box-shadow: 0 5px 10px var(--box-shadow-outline-color);
user-select: text;
-webkit-user-drag: auto;
}