Commit f10984c2 authored by Regan Hsu's avatar Regan Hsu Committed by Commit Bot

[CrOS Wallpaper] Remove centering options for images that are not local.

Centering options should not appear for wallpaper images that are not
saved on the user's device.  Currently, they do for all images. This CL
ensures that the 'center' and 'center cropped' options only appear
for wallpaper images that are local to the device.

screenshots:
local image - https://screenshot.googleplex.com/iJmCUfbRiYK
provided by google - https://screenshot.googleplex.com/kuD2X94vTUV

Bug: 1022341
Change-Id: Icbf5afceb9dcd6615f9afb7fd0d5e1b8a6f3b982
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1904868Reviewed-by: default avatarXiaoqian Dai <xdai@chromium.org>
Commit-Queue: Regan Hsu <hsuregan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714317}
parent 8eb4b8b5
...@@ -534,7 +534,6 @@ html[dir='rtl'] .top-header-contents .more-options { ...@@ -534,7 +534,6 @@ html[dir='rtl'] .top-header-contents .more-options {
} }
#centering-options { #centering-options {
display: flex;
padding: 0; padding: 0;
} }
......
...@@ -165,12 +165,12 @@ found in the LICENSE file. ...@@ -165,12 +165,12 @@ found in the LICENSE file.
<div class="divider"></div> <div class="divider"></div>
<div id="wallpaper-description"></div> <div id="wallpaper-description"></div>
<div class="more-options"> <div class="more-options">
<div id="centering-options"> <div id="centering-options" class="custom-option">
<div id="center-button" class="custom-option"> <div id="center-button">
<div class="icon"></div> <div class="icon"></div>
<div class="text" i18n-content="centerLayout"></div> <div class="text" i18n-content="centerLayout"></div>
</div> </div>
<div id="center-cropped-button" class="custom-option"> <div id="center-cropped-button">
<div class="icon"></div> <div class="icon"></div>
<div class="text" i18n-content="centerCroppedLayout"></div> <div class="text" i18n-content="centerCroppedLayout"></div>
</div> </div>
......
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