Commit 836a26fc authored by Esmael El-Moslimany's avatar Esmael El-Moslimany Committed by Commit Bot

WebUI NTP: fix logo shrinking when it is larger than min-height

Bug: 1091367
Change-Id: I8283c28f0bdbb2b1fa87bdab76e2dc508ff6bdb3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2231291
Commit-Queue: Esmael Elmoslimany <aee@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Auto-Submit: Esmael Elmoslimany <aee@chromium.org>
Reviewed-by: default avatarTibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#775241}
parent 247bd93b
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
:host { :host {
--ntp-logo-height: 230px; --ntp-logo-height: 230px;
display: inline-block; display: inline-block;
flex-shrink: 0;
min-height: var(--ntp-logo-height); min-height: var(--ntp-logo-height);
} }
...@@ -83,7 +84,7 @@ ...@@ -83,7 +84,7 @@
</template> </template>
</dom-if> </dom-if>
<dom-if if="[[showDoodle_]]" restamp> <dom-if if="[[showDoodle_]]" restamp>
<template> <template>
<div id="doodle" title="[[doodle_.description]]"> <div id="doodle" title="[[doodle_.description]]">
<div id="imageContainer" hidden="[[!doodle_.content.imageDoodle]]" <div id="imageContainer" hidden="[[!doodle_.content.imageDoodle]]"
tabindex="1" on-click="onImageClick_" on-keydown="onImageKeydown_"> tabindex="1" on-click="onImageClick_" on-keydown="onImageKeydown_">
......
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