@lavalogic/scoria 0.37.21 → 0.37.22
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.
|
@@ -122,16 +122,24 @@
|
|
|
122
122
|
class:multifocus-start={focusDetails.isMultiFocusStart}
|
|
123
123
|
bind:this={cellRef}
|
|
124
124
|
onmousedown={(e) => {
|
|
125
|
-
//
|
|
126
|
-
//
|
|
127
|
-
//
|
|
128
|
-
//
|
|
129
|
-
//
|
|
130
|
-
//
|
|
131
|
-
//
|
|
132
|
-
//
|
|
133
|
-
//
|
|
125
|
+
// Suppress the click-side effects that cause the table to
|
|
126
|
+
// jump horizontally on Action button clicks:
|
|
127
|
+
// 1. `preventDefault()` cancels the browser's default
|
|
128
|
+
// mousedown -> focus on the inner `<button>`, which
|
|
129
|
+
// otherwise calls `scrollIntoView` against the button's
|
|
130
|
+
// underlying position (far right of the row, since the
|
|
131
|
+
// Actions column is sticky-pinned right).
|
|
132
|
+
// 2. `stopPropagation()` keeps the event out of the outer
|
|
133
|
+
// `.focusable` cell handler, which would otherwise call
|
|
134
|
+
// `tableContext.startFocus(...)` and trigger Table.svelte's
|
|
135
|
+
// focusStart $effect -> another `scrollIntoView`. Even
|
|
136
|
+
// with the pinned-cell-skip in that effect, focus state
|
|
137
|
+
// changes feed back into other scroll-restore paths.
|
|
138
|
+
// The Action's own `onclick` fires regardless (click is dispatched
|
|
139
|
+
// on mouseup independent of mousedown handling), so the popup
|
|
140
|
+
// toggle still works.
|
|
134
141
|
e.preventDefault();
|
|
142
|
+
e.stopPropagation();
|
|
135
143
|
}}
|
|
136
144
|
>
|
|
137
145
|
<!-- TODO {isMultiFocusStart} -->
|
|
@@ -349,20 +349,18 @@
|
|
|
349
349
|
--input-width: 4rem;
|
|
350
350
|
--input-border: none;
|
|
351
351
|
}
|
|
352
|
-
.spread_row .
|
|
353
|
-
--input-width: 4.5rem;
|
|
354
|
-
padding: 0 0.5rem;
|
|
355
|
-
gap: 0.375rem;
|
|
356
|
-
}
|
|
357
|
-
.spread_row .records-per-page.nopad {
|
|
352
|
+
.spread_row .block.nopad {
|
|
358
353
|
padding: 0;
|
|
359
354
|
--button-padding-horizontal: 1rem;
|
|
360
355
|
--button-padding-vertical: 0.56rem;
|
|
361
356
|
}
|
|
362
|
-
.spread_row .
|
|
357
|
+
.spread_row .block.nopad.page-arrow {
|
|
363
358
|
--button-padding-horizontal: 0.6rem;
|
|
364
359
|
--button-padding-vertical: 0.42rem;
|
|
365
360
|
}
|
|
361
|
+
.spread_row .block.records-per-page {
|
|
362
|
+
--input-width: 3.5rem;
|
|
363
|
+
}
|
|
366
364
|
.spread_row span,
|
|
367
365
|
.spread_row label {
|
|
368
366
|
white-space: nowrap;
|