Skip to content

Commit 88ecd90

Browse files
committed
move storage left
1 parent b478af7 commit 88ecd90

2 files changed

Lines changed: 46 additions & 11 deletions

File tree

src/folderPane.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ export default {
8282
let mainTable // This is a live synced table
8383
const div = dom.createElement('div')
8484
div.classList.add('instancePane', 'folderPaneInstancePane')
85-
if (UI.style.folderPaneStyle) {
86-
div.setAttribute('style', UI.style.folderPaneStyle)
87-
}
8885

8986
const thisDir = subject.uri.endsWith('/') ? subject.uri : subject.uri + '/'
9087
const indexThing = kb.sym(thisDir + 'index.ttl#this')

src/styles/folderPane.css

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,37 @@
11
.folderPaneInstancePane {
22
box-sizing: border-box;
3+
align-self: stretch;
4+
text-align: left;
35
width: 100%;
4-
max-width: 100%;
5-
border-top: solid 1px #777;
6-
border-bottom: solid 1px #777;
6+
max-width: none;
7+
margin-left: 0;
8+
margin-right: 0;
79
margin-top: var(--spacing-xs, 0.5em);
810
margin-bottom: var(--spacing-xs, 0.5em);
911
overflow-x: auto;
1012
-webkit-overflow-scrolling: touch;
1113
}
1214

1315
.folderPanePackageDiv {
16+
display: block;
17+
text-align: left;
1418
width: 100%;
15-
max-width: 100%;
19+
max-width: none;
20+
margin-left: 0;
21+
margin-right: 0;
1622
border-top: 0.2em solid #ccc;
1723
overflow-x: auto;
1824
}
1925

2026
.folderPaneMainTable {
27+
display: table;
2128
width: 100%;
22-
max-width: 100%;
29+
max-width: none;
2330
table-layout: auto;
2431
text-align: left;
32+
margin-left: 0;
33+
margin-right: auto;
34+
margin-bottom: var(--spacing-lg, 1.5625rem);
2535
}
2636

2737
.folderPaneMainTable td,
@@ -32,17 +42,45 @@
3242
word-break: break-word;
3343
}
3444

45+
/* manager.js sets inline padding:0 on object cells; use an important override here */
46+
.folderPaneMainTable > tr > td.obj,
47+
.folderPaneMainTable > tbody > tr > td.obj {
48+
padding-left: var(--spacing-lg, 1.5625rem) !important;
49+
}
50+
3551
.folderPanePredicateCell {
36-
min-width: 0.1em;
52+
width: 0;
53+
min-width: 0;
54+
max-width: 0;
55+
padding: 0 !important;
56+
margin: 0 !important;
57+
border: 0 !important;
58+
overflow: hidden;
3759
}
3860

3961
.folderPaneCreationDiv {
62+
display: flex;
63+
align-items: flex-start;
64+
justify-content: flex-start;
65+
text-align: left;
4066
width: 100%;
41-
max-width: 100%;
67+
max-width: none;
68+
margin-left: 0;
69+
margin-right: 0;
4270
}
4371

4472
.folderPaneDropTarget {
45-
max-width: 100%;
73+
display: inline-block;
74+
width: var(--icon-base, 2em);
75+
min-width: var(--icon-base, 2em);
76+
max-width: var(--icon-base, 2em);
77+
height: var(--icon-base, 2em);
78+
min-height: var(--icon-base, 2em);
79+
max-height: var(--icon-base, 2em);
80+
padding: 0 !important;
81+
margin: 0 !important;
82+
box-sizing: content-box;
83+
flex: 0 0 var(--icon-base, 2em);
4684
}
4785

4886
.folderPaneExplicitDropIcon {

0 commit comments

Comments
 (0)