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

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

Issue 2745593004: [MD Bookmarks] Add draggable sidebar. (Closed)
Patch Set: rebase Created 3 years, 9 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/app.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/app.html
diff --git a/chrome/browser/resources/md_bookmarks/app.html b/chrome/browser/resources/md_bookmarks/app.html
index b4a21904783d79307f51044cbe74925bb91964be..abc00da5d399c27d27e145f6c8aafa11c1e4ed47 100644
--- a/chrome/browser/resources/md_bookmarks/app.html
+++ b/chrome/browser/resources/md_bookmarks/app.html
@@ -1,4 +1,5 @@
<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/html/cr/ui/splitter.html">
<link rel="import" href="chrome://bookmarks/api_listener.html">
<link rel="import" href="chrome://bookmarks/list.html">
<link rel="import" href="chrome://bookmarks/shared_vars.html">
@@ -14,7 +15,6 @@
display: flex;
flex-direction: column;
height: 100%;
- overflow: hidden;
}
#main-container {
@@ -24,17 +24,30 @@
overflow: auto;
}
+ #splitter {
+ cursor: e-resize;
+ flex: 0 0 var(--splitter-width);
+ }
+
+ :host-context([dir='rtl']) #splitter {
+ cursor: w-resize;
+ }
+
bookmarks-sidebar {
- flex: 0 0 var(--sidebar-width);
+ max-width: 40%;
+ min-width: var(--min-sidebar-width);
+ width: var(--min-sidebar-width);
}
bookmarks-list {
flex: 1;
+ min-width: 550px;
}
</style>
- <bookmarks-toolbar></bookmarks-toolbar>
+ <bookmarks-toolbar sidebar-width="[[sidebarWidth_]]"></bookmarks-toolbar>
<div id="main-container">
- <bookmarks-sidebar></bookmarks-sidebar>
+ <bookmarks-sidebar id="sidebar"></bookmarks-sidebar>
+ <div id="splitter"></div>
<bookmarks-list></bookmarks-list>
</div>
</template>
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/app.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698