@formicoidea/labre-core-database 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -112,7 +112,10 @@ let DatabasePageHost = (() => {
|
|
|
112
112
|
flex-direction: column;
|
|
113
113
|
height: 100%;
|
|
114
114
|
overflow: auto;
|
|
115
|
-
/* The container the
|
|
115
|
+
/* The container the heading's narrow-screen query reads (doc-title,
|
|
116
|
+
outside the editor). Never a width to size with: on a scroller,
|
|
117
|
+
Chrome's 100cqw counts its vertical scrollbar (the editor-host
|
|
118
|
+
rule below). */
|
|
116
119
|
container-type: inline-size;
|
|
117
120
|
container-name: viewport;
|
|
118
121
|
/* A wide table scrolled sideways fades into the gutters instead of
|
|
@@ -139,16 +142,25 @@ let DatabasePageHost = (() => {
|
|
|
139
142
|
}
|
|
140
143
|
/* The editor takes the height the heading leaves (std gives it 100%,
|
|
141
144
|
which overflowed by the heading's height: a scrollbar on a short
|
|
142
|
-
table).
|
|
145
|
+
table).
|
|
146
|
+
It is also the container the page's widths read (the root's inset,
|
|
147
|
+
its narrow-screen query, the block's sticky view bar): a child of
|
|
148
|
+
the scroller, its width is the visible one. The scroller's own 100cqw
|
|
149
|
+
counted its vertical scrollbar, so as soon as a base scrolled down
|
|
150
|
+
the page overflowed sideways by that scrollbar's width and showed a
|
|
151
|
+
horizontal one (labre recette of 2.1). */
|
|
143
152
|
affine-database-page > .affine-page-viewport > editor-host {
|
|
144
153
|
flex: 1 0 auto;
|
|
145
154
|
height: auto;
|
|
155
|
+
container-type: inline-size;
|
|
156
|
+
container-name: viewport;
|
|
146
157
|
}
|
|
147
|
-
/* The heading stays in view when the page scrolls sideways
|
|
158
|
+
/* The heading stays in view when the page scrolls sideways, as wide as
|
|
159
|
+
the scroller shows (100%, not the scroller's 100cqw: see above). */
|
|
148
160
|
affine-database-page > .affine-page-viewport > doc-title {
|
|
149
161
|
position: sticky;
|
|
150
162
|
left: 0;
|
|
151
|
-
width:
|
|
163
|
+
width: 100%;
|
|
152
164
|
}
|
|
153
165
|
/* A database page is a table, not a text: the heading sits on the view
|
|
154
166
|
bar, without the page title's bottom padding, its band's, or the
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-core-database",
|
|
3
3
|
"description": "Labre core-database editing chrome for @formicoidea/labre-core.",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "lajola",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@formicoidea/labre-core": "2.1.
|
|
30
|
+
"@formicoidea/labre-core": "2.1.1",
|
|
31
31
|
"@blocksuite/icons": "^2.2.12",
|
|
32
32
|
"@preact/signals-core": "^1.8.0",
|
|
33
33
|
"lit": "^3.2.0"
|