Commit 9093e46b authored by Scott Chen's avatar Scott Chen Committed by Commit Bot

MD Extensions: fix detail_view toggle layout

Bug: 776483
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ia2679f9900910141d8c998619963b0a140ff6633
Reviewed-on: https://chromium-review.googlesource.com/728862Reviewed-by: default avatarDave Schuyler <dschuyler@chromium.org>
Commit-Queue: Scott Chen <scottchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#510210}
parent 55cb377d
......@@ -173,23 +173,21 @@
<img alt="" id="icon" src="[[data.iconUrl]]">
<span id="name">[[data.name]]</span>
</div>
<div class="section continuation" id="enable-section">
<div class="control-line">
<span class$="{{computeEnabledStyle_(data.state)}}">
[[computeEnabledText_(data.state)]]
</span>
<div class="layout horizontal">
<cr-tooltip-icon hidden$="[[!data.controlledInfo]]"
tooltip-text="[[data.controlledInfo.text]]"
icon-class="[[getIndicatorIcon_(data.controlledInfo.type)]]"
icon-aria-label="[[data.controlledInfo.type]]">
</cr-tooltip-icon>
<cr-toggle id="enable-toggle"
checked="[[isEnabled_(data.state)]]"
on-change="onEnableChange_"
disabled="[[!isEnableToggleEnabled_(data.*)]]">
</cr-toggle>
</div>
<div class="section continuation control-line" id="enable-section">
<span class$="{{computeEnabledStyle_(data.state)}}">
[[computeEnabledText_(data.state)]]
</span>
<div class="layout horizontal">
<cr-tooltip-icon hidden$="[[!data.controlledInfo]]"
tooltip-text="[[data.controlledInfo.text]]"
icon-class="[[getIndicatorIcon_(data.controlledInfo.type)]]"
icon-aria-label="[[data.controlledInfo.type]]">
</cr-tooltip-icon>
<cr-toggle id="enable-toggle"
checked="[[isEnabled_(data.state)]]"
on-change="onEnableChange_"
disabled="[[!isEnableToggleEnabled_(data.*)]]">
</cr-toggle>
</div>
</div>
<div id="warnings" hidden$="[[!hasWarnings_(data.*)]]">
......
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