Commit 97a41382 authored by Anqing Zhao's avatar Anqing Zhao Committed by Commit Bot

Make buttons on chrome://policy not scrollable

After buttons are changed as unscrollable, users can reload policy or
export them to Json file without scrolling the page to the top. That's
will be more convenient.

Bug: 991296
Change-Id: Ic9a0b70cb888a1eb36f58c8ac2317ea96b781aab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761603Reviewed-by: default avatarSergey Poromov <poromov@chromium.org>
Reviewed-by: default avatarYann Dago <ydago@chromium.org>
Commit-Queue: Anqing Zhao <anqing@google.com>
Cr-Commit-Position: refs/heads/master@{#688579}
parent b569c220
...@@ -124,11 +124,11 @@ div.status-entry:last-child { ...@@ -124,11 +124,11 @@ div.status-entry:last-child {
} }
body > header { body > header {
align-items: center;
padding: 12px; padding: 12px;
} }
body > header, .header-row {
.reload-show-unset-section {
align-items: center; align-items: center;
display: flex; display: flex;
height: 56px; height: 56px;
......
...@@ -18,13 +18,13 @@ ...@@ -18,13 +18,13 @@
<body> <body>
<header> <header>
<h1>$i18n{title}</h1> <div class="header-row">
<input id="filter" class="search-field-container" type="search" <h1>$i18n{title}</h1>
placeholder="$i18n{filterPlaceholder}" <input id="filter" class="search-field-container" type="search"
aria-label="$i18n{filterPlaceholder}" incremental> placeholder="$i18n{filterPlaceholder}"
</header> aria-label="$i18n{filterPlaceholder}" incremental>
<main id="policy-ui"> </div>
<section class="reload-show-unset-section"> <div class="header-row">
<button id="reload-policies">$i18n{reloadPolicies}</button> <button id="reload-policies">$i18n{reloadPolicies}</button>
<button id="export-policies">$i18n{exportPoliciesJSON}</button> <button id="export-policies">$i18n{exportPoliciesJSON}</button>
<div id="show-unset-container" class="show-unset-checkbox"> <div id="show-unset-container" class="show-unset-checkbox">
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
<span>$i18n{showUnset}</span> <span>$i18n{showUnset}</span>
</label> </label>
</div> </div>
</section> </div>
</header>
<main id="policy-ui">
<section id="status-section" class="status-box-section" hidden> <section id="status-section" class="status-box-section" hidden>
<h3>$i18n{status}</h3> <h3>$i18n{status}</h3>
<div id="status-box-container"></div> <div id="status-box-container"></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