dsh-sidebar-shelves 0.1.2 → 0.1.5

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.
Files changed (2) hide show
  1. package/client.js +9 -0
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -219,6 +219,15 @@ window.__ModuleLoader__.load({
219
219
 
220
220
  const css = [
221
221
  '.dsh-shelves-root{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}',
222
+ // DSH 0.2.2 renders the section in a max-content grid row inside the
223
+ // sidebar viewport; the flex parent no longer stretches it, so the
224
+ // stack's `margin-top:auto` would have no free space and the Archived
225
+ // shelf would sit right under the last card. Give that row the space the
226
+ // viewport leaves after its scrolling gaps and panel navigation, then
227
+ // fill it. Older shells size the flex parent instead and never carry
228
+ // this marker.
229
+ '[data-sidebar-scrollport]:has(.dsh-shelves-root){grid-template-rows:8px max-content 2px minmax(0,1fr)}',
230
+ '[data-sidebar-scrollport] .dsh-shelves-root{height:100%}',
222
231
  '.dsh-shelves-scroll{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}',
223
232
  '.dsh-shelves-scroll::-webkit-scrollbar{display:none;width:0;height:0}',
224
233
  '.dsh-shelves-stack{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;padding:6px 4px 10px}',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-sidebar-shelves",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "description": "Two-line session cards for the DSH sidebar: per-workspace project icons, pinning, archiving, project removal, status markers, job counts, and recency sorting",
6
6
  "license": "MIT",