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

Side by Side Diff: chrome/browser/resources/md_bookmarks/app.html

Issue 2745593004: [MD Bookmarks] Add draggable sidebar. (Closed)
Patch Set: rebase, comments 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/html/cr/ui/splitter.html">
2 <link rel="import" href="chrome://bookmarks/api_listener.html"> 3 <link rel="import" href="chrome://bookmarks/api_listener.html">
3 <link rel="import" href="chrome://bookmarks/list.html"> 4 <link rel="import" href="chrome://bookmarks/list.html">
4 <link rel="import" href="chrome://bookmarks/shared_vars.html"> 5 <link rel="import" href="chrome://bookmarks/shared_vars.html">
5 <link rel="import" href="chrome://bookmarks/sidebar.html"> 6 <link rel="import" href="chrome://bookmarks/sidebar.html">
6 <link rel="import" href="chrome://bookmarks/store.html"> 7 <link rel="import" href="chrome://bookmarks/store.html">
7 <link rel="import" href="chrome://bookmarks/toolbar.html"> 8 <link rel="import" href="chrome://bookmarks/toolbar.html">
8 <link rel="import" href="chrome://bookmarks/util.html"> 9 <link rel="import" href="chrome://bookmarks/util.html">
9 10
10 <dom-module id="bookmarks-app"> 11 <dom-module id="bookmarks-app">
11 <template> 12 <template>
12 <style> 13 <style>
13 :host { 14 :host {
14 display: flex; 15 display: flex;
15 flex-direction: column; 16 flex-direction: column;
16 height: 100%; 17 height: 100%;
17 overflow: hidden; 18 overflow: hidden;
18 } 19 }
19 20
20 #main-container { 21 #main-container {
21 display: flex; 22 display: flex;
22 flex-direction: row; 23 flex-direction: row;
23 flex-grow: 1; 24 flex-grow: 1;
24 overflow: auto; 25 }
26
27 #splitter {
28 border-left: 1px solid rgba(0, 0, 0, 0.08);
29 box-sizing: border-box;
30 cursor: e-resize;
31 flex: 0 0 var(--splitter-width);
25 } 32 }
26 33
27 bookmarks-sidebar { 34 bookmarks-sidebar {
28 flex: 0 0 var(--sidebar-width); 35 max-width: calc(100vw - 900px);
36 min-width: var(--min-sidebar-width);
37 width: var(--min-sidebar-width);
29 } 38 }
30 39
31 bookmarks-list { 40 bookmarks-list {
32 flex: 1; 41 flex: 1;
33 } 42 }
34 </style> 43 </style>
35 <bookmarks-toolbar></bookmarks-toolbar> 44 <bookmarks-toolbar sidebar-width="[[sidebarWidth_]]"></bookmarks-toolbar>
36 <div id="main-container"> 45 <div id="main-container">
37 <bookmarks-sidebar></bookmarks-sidebar> 46 <bookmarks-sidebar id="sidebar">
tsergeant 2017/03/14 03:38:51 This can still live on one line.
calamity 2017/03/14 07:07:55 Done.
47 </bookmarks-sidebar>
48 <div id="splitter"></div>
38 <bookmarks-list></bookmarks-list> 49 <bookmarks-list></bookmarks-list>
39 </div> 50 </div>
40 </template> 51 </template>
41 <script src="chrome://bookmarks/app.js"></script> 52 <script src="chrome://bookmarks/app.js"></script>
42 </dom-module> 53 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/app.js » ('j') | chrome/browser/resources/md_bookmarks/folder_node.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698