tokimeki-image-editor 0.2.7 → 0.2.8
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.
|
@@ -51,7 +51,7 @@ function handleSheetDragEnd() {
|
|
|
51
51
|
<div
|
|
52
52
|
bind:this={panelElement}
|
|
53
53
|
class="tool-panel"
|
|
54
|
-
style="--sheet-offset: {sheetOffset}px; --sheet-max-height: {SHEET_MAX_HEIGHT}px"
|
|
54
|
+
style="--sheet-offset: {sheetOffset}px; --sheet-max-height: {SHEET_MAX_HEIGHT}px; --sheet-visible-height: {SHEET_MAX_HEIGHT - sheetOffset}px"
|
|
55
55
|
>
|
|
56
56
|
<!-- Drag handle for mobile bottom sheet -->
|
|
57
57
|
<div
|
|
@@ -113,8 +113,9 @@ function handleSheetDragEnd() {
|
|
|
113
113
|
height: var(--sheet-max-height, 400px);
|
|
114
114
|
border-radius: 16px 16px 0 0;
|
|
115
115
|
z-index: 9999;
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
overflow: hidden;
|
|
118
119
|
padding-top: 0;
|
|
119
120
|
padding-bottom: 1.5rem;
|
|
120
121
|
transform: translateY(var(--sheet-offset, 0px));
|
|
@@ -137,7 +138,8 @@ function handleSheetDragEnd() {
|
|
|
137
138
|
cursor: grab;
|
|
138
139
|
touch-action: pan-x;
|
|
139
140
|
user-select: none;
|
|
140
|
-
-webkit-user-select: none
|
|
141
|
+
-webkit-user-select: none;
|
|
142
|
+
flex-shrink: 0
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
.sheet-drag-handle:active {
|
|
@@ -162,7 +164,8 @@ function handleSheetDragEnd() {
|
|
|
162
164
|
@media (max-width: 767px) {
|
|
163
165
|
|
|
164
166
|
.panel-header {
|
|
165
|
-
margin-bottom: 0.5rem
|
|
167
|
+
margin-bottom: 0.5rem;
|
|
168
|
+
flex-shrink: 0
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
171
|
|
|
@@ -206,7 +209,13 @@ function handleSheetDragEnd() {
|
|
|
206
209
|
@media (max-width: 767px) {
|
|
207
210
|
|
|
208
211
|
.panel-content {
|
|
209
|
-
gap: 0.75rem
|
|
212
|
+
gap: 0.75rem;
|
|
213
|
+
flex: 1;
|
|
214
|
+
overflow-y: auto;
|
|
215
|
+
overscroll-behavior: contain;
|
|
216
|
+
min-height: 0;
|
|
217
|
+
/* Calculate max height: visible area - header (~40px) - padding - actions (~50px) - drag handle (~32px) */
|
|
218
|
+
max-height: calc(var(--sheet-visible-height, 400px) - 130px)
|
|
210
219
|
}
|
|
211
220
|
}
|
|
212
221
|
|
|
@@ -220,6 +229,7 @@ function handleSheetDragEnd() {
|
|
|
220
229
|
@media (max-width: 767px) {
|
|
221
230
|
|
|
222
231
|
.panel-actions {
|
|
223
|
-
margin-top: 0.5rem
|
|
232
|
+
margin-top: 0.5rem;
|
|
233
|
+
flex-shrink: 0
|
|
224
234
|
}
|
|
225
235
|
}</style>
|