[CrOS Wallpapers] Set min-width and max width to allow ease of centering
Currently, javascript is used to center the message-container. This is problematic because the content width is not always known when the JS tries to center the message-container, leading to incorrect centering when trying to center the div imperatively as info is missing. This CL adds a min-width and max-width to the message-container so centering can be achieved easily declaratively with other CSS rules (left & transform). In doing so, the message-container is now centered correctly, but also has a min width and max width. Bug: 937370 Change-Id: Ie73d8ef4a52d21685a51305e39351935ab9be6e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1891123Reviewed-by:Xiaoqian Dai <xdai@chromium.org> Commit-Queue: Regan Hsu <hsuregan@chromium.org> Cr-Commit-Position: refs/heads/master@{#711394}
Showing
Please register or sign in to comment