Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2754)

Unified Diff: chrome/browser/resources/md_bookmarks/command_manager.html

Issue 2924253002: [MD Bookmarks] Add bookmark count to context menu for multiple items. (Closed)
Patch Set: rebase, address comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/command_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/command_manager.html
diff --git a/chrome/browser/resources/md_bookmarks/command_manager.html b/chrome/browser/resources/md_bookmarks/command_manager.html
index a57c5101e0d4ed0cea3305e87a1c90d6550cfacc..7189724b1a9b49d17dfb53935349be49cb692710 100644
--- a/chrome/browser/resources/md_bookmarks/command_manager.html
+++ b/chrome/browser/resources/md_bookmarks/command_manager.html
@@ -9,7 +9,22 @@
<dom-module id="bookmarks-command-manager">
<template>
- <style include="shared-style"></style>
+ <style include="shared-style">
+ .label {
+ flex: 1;
+ }
+
+ .sublabel {
+ -webkit-margin-start: 8px;
+ color: var(--secondary-text-color);
+ text-align: end;
+ width: 3ch;
+ }
+
+ :host(:not([has-any-sublabel_])) .sublabel {
+ display: none;
+ }
+ </style>
<dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_">
<template is="dom-repeat" items="[[menuCommands_]]" as="command">
<button class="dropdown-item"
@@ -17,7 +32,12 @@
hidden$="[[!isCommandVisible_(command, menuIds_)]]"
disabled$="[[!isCommandEnabled_(command, menuIds_)]]"
on-tap="onCommandClick_">
- [[getCommandLabel_(command, menuIds_)]]
+ <span class="label">
+ [[getCommandLabel_(command, menuIds_)]]
+ </span>
+ <span class="sublabel">
+ [[getCommandSublabel_(command, menuIds_)]]
+ </span>
</button>
<hr hidden$="[[!showDividerAfter_(command, menuIds_)]]"></hr>
</template>
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/command_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698