| Index: chrome/browser/resources/md_bookmarks/folder_node.html
|
| diff --git a/chrome/browser/resources/md_bookmarks/folder_node.html b/chrome/browser/resources/md_bookmarks/folder_node.html
|
| index 728f33322824c8c2b9c87929b20cd3f5f478f1f6..7ca31c49459e2bc8e642ac720246b88575557ad9 100644
|
| --- a/chrome/browser/resources/md_bookmarks/folder_node.html
|
| +++ b/chrome/browser/resources/md_bookmarks/folder_node.html
|
| @@ -12,6 +12,7 @@
|
| <template>
|
| <style include="shared-style">
|
| :host {
|
| + --margin-left-per-depth: 36px;
|
| display: block;
|
| }
|
|
|
| @@ -22,24 +23,23 @@
|
| }
|
|
|
| .menu-label {
|
| - -webkit-margin-start: 24px;
|
| + -webkit-margin-start: 16px;
|
| color: var(--folder-inactive-color);
|
| font-weight: 500;
|
| - overflow: hidden;
|
| text-overflow: ellipsis;
|
| white-space: nowrap;
|
| }
|
|
|
| #container {
|
| height: 40px;
|
| - margin-left: calc(var(--node-depth, 0) * 30px);
|
| + margin-left: calc(var(--node-depth, 0) * var(--margin-left-per-depth));
|
| }
|
|
|
| #folder-label {
|
| color: var(--secondary-text-color);
|
| cursor: pointer;
|
| flex-grow: 1;
|
| - overflow: hidden;
|
| + padding-right: 8px;
|
| }
|
|
|
| :host([is-selected-folder_]) .menu-label,
|
| @@ -53,26 +53,38 @@
|
| min-width: 20px;
|
| }
|
|
|
| - paper-icon-button {
|
| + #arrow {
|
| color: var(--secondary-text-color);
|
| height: 36px;
|
| + margin: 0 8px;
|
| min-width: 36px;
|
| - padding: 8px;
|
| + transform: rotate(270deg);
|
| width: 36px;
|
| }
|
| +
|
| + #arrow[is-open] {
|
| + transform: initial;
|
| + }
|
| +
|
| + [no-children] {
|
| + padding-left: 52px;
|
| + }
|
| </style>
|
|
|
| <div id="container" class="v-centered">
|
| + <template is="dom-if" if="[[hasChildFolder_(item_.children)]]">
|
| + <paper-icon-button id="arrow" icon="cr:arrow-drop-down"
|
| + is-open$="[[!isClosed_]]" on-tap="toggleFolder_">
|
| + </paper-icon-button>
|
| + </template>
|
| <div id="folder-label" class="v-centered" on-tap="selectFolder_">
|
| - <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]"></iron-icon>
|
| + <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]"
|
| + no-children$="[[!hasChildFolder_(item_.children)]]">
|
| + </iron-icon>
|
| <div class="menu-label">[[item_.title]]</div>
|
| </div>
|
| - <template is="dom-if" if="[[hasChildFolder_(item_.children)]]">
|
| - <paper-icon-button icon="[[getArrowIcon_(isClosed_)]]"
|
| - on-tap="toggleFolder_"></paper-icon-button>
|
| - </template>
|
| </div>
|
| - <div id="descendants" hidden$="[[isClosed]]">
|
| + <div id="descendants" hidden$="[[isClosed_]]">
|
| <template is="dom-repeat"
|
| items="[[item_.children]]"
|
| as="child"
|
|
|