@the-portland-company/canvas-editor 0.4.1 → 0.4.2
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.
- package/CHANGELOG.md +5 -0
- package/dist/canvas.css +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.2 — tray fits the canvas column
|
|
4
|
+
|
|
5
|
+
- The tile strip shrinks and scrolls horizontally so the Side | Center toggle,
|
|
6
|
+
labels, undo/redo and × never clip outside the canvas column.
|
|
7
|
+
|
|
3
8
|
## 0.4.1 — tray always on screen
|
|
4
9
|
|
|
5
10
|
- The block tray is fixed to the viewport over the canvas column (live-measured
|
package/dist/canvas.css
CHANGED
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
.ce-tray {
|
|
190
190
|
pointer-events: auto;
|
|
191
191
|
display: flex; align-items: center; gap: 1rem;
|
|
192
|
-
width: fit-content; max-width: 100%;
|
|
192
|
+
width: fit-content; max-width: 100%; min-width: 0;
|
|
193
193
|
padding: 9px 10px 4px;
|
|
194
194
|
background: var(--color-surface);
|
|
195
195
|
border: 1px solid var(--color-border);
|
|
@@ -199,12 +199,17 @@
|
|
|
199
199
|
|
|
200
200
|
.dark .ce-tray { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5); }
|
|
201
201
|
|
|
202
|
+
/* min-width:0 lets the strip shrink and scroll so the controls after it
|
|
203
|
+
(Side | Center, labels, undo/redo, ×) stay inside the canvas column. */
|
|
202
204
|
.ce-tray-tiles {
|
|
203
205
|
display: flex; align-items: stretch; gap: 0.5rem;
|
|
206
|
+
flex: 0 1 auto; min-width: 0;
|
|
204
207
|
overflow-x: auto; padding-bottom: 0.25rem;
|
|
205
208
|
scrollbar-width: thin;
|
|
206
209
|
}
|
|
207
210
|
|
|
211
|
+
.ce-tray-tiles > .ce-tile { flex: 0 0 auto; }
|
|
212
|
+
|
|
208
213
|
.ce-tile {
|
|
209
214
|
display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
|
|
210
215
|
min-width: 2.75rem; height: 2.75rem; padding: 0.5rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@the-portland-company/canvas-editor",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Shared VRM canvas editor substrate — block/layout document model, block registry, HTML-email renderer, and the drag-and-drop editor surface for Politogy VRM apps. Framework-agnostic: styling via brand CSS vars, data/persistence/media injected by the app through a CanvasHostAdapter (the package never imports Supabase or Next).",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|