@gravionlabs/helix-desktop 22.4.0 → 22.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravionlabs/helix-desktop",
3
- "version": "22.4.0",
3
+ "version": "22.5.1",
4
4
  "description": "Helix desktop frame for Angular: activity bar, views, status bar and the platform switch. Tauri bindings in the optional /tauri entry.",
5
5
  "license": "MIT",
6
6
  "keywords": [
package/styles.css CHANGED
@@ -175,7 +175,15 @@
175
175
  z-index: 10;
176
176
  }
177
177
 
178
+ /*
179
+ * The inset layout, as in helix-shell: a frame ground with inset panels. The activity bar, the sidebar,
180
+ * the content and the panel are framed on all sides with a gap to each other and to the window edge;
181
+ * the toolbar and the status bar lie flat on the frame. Gap and radius are the tokens of helix-shell,
182
+ * with fallbacks so the shell stylesheet is not needed; `--helix-panel-gap: 0` gives a flush layout.
183
+ */
178
184
  .hx-app-shell {
185
+ --hx-panel-gap: var(--helix-panel-gap, 4px);
186
+ --hx-panel-radius: var(--helix-panel-radius, 6px);
179
187
  display: flex;
180
188
  flex-direction: column;
181
189
  height: 100%;
@@ -187,25 +195,45 @@
187
195
  display: flex;
188
196
  flex: 1;
189
197
  min-height: 0;
198
+ padding: var(--hx-panel-gap);
199
+ }
200
+ .hx-app-shell-body > .hx-activity-bar,
201
+ .hx-app-shell-sidebar,
202
+ .hx-app-shell-content,
203
+ .hx-app-shell-body > [slot="panel"] {
204
+ box-sizing: border-box;
205
+ border: 1px solid var(--h-content-border-color);
206
+ border-radius: var(--hx-panel-radius);
207
+ background: var(--h-content-background, var(--h-surface-frame));
208
+ overflow: hidden;
209
+ }
210
+ .hx-app-shell-body > .hx-activity-bar {
211
+ margin-inline-end: var(--hx-panel-gap);
190
212
  }
191
213
  .hx-app-shell-sidebar {
192
214
  flex: none;
193
- box-sizing: border-box;
194
215
  overflow: auto;
195
- background: var(--h-surface-frame);
196
216
  }
197
217
  .hx-app-shell-sidebar[hidden] {
198
218
  display: none;
199
219
  }
220
+ /* The resize handle fills the gap between the sidebar and the content; ::before widens the hit area, so
221
+ the handle stays usable when the gap is 0. */
200
222
  .hx-app-shell-resizer {
223
+ position: relative;
201
224
  flex: none;
202
- width: 5px;
203
- margin-inline: -2px;
225
+ width: var(--hx-panel-gap);
204
226
  z-index: 1;
205
227
  cursor: col-resize;
206
228
  touch-action: none;
207
229
  background: transparent;
208
230
  }
231
+ .hx-app-shell-resizer::before {
232
+ content: "";
233
+ position: absolute;
234
+ inset-block: 0;
235
+ inset-inline: -3px;
236
+ }
209
237
  .hx-app-shell-resizer:hover,
210
238
  .hx-app-shell-resizer:focus-visible {
211
239
  background: var(--h-primary-color);
@@ -217,11 +245,13 @@
217
245
  min-height: 0;
218
246
  display: flex;
219
247
  flex-direction: column;
220
- overflow: hidden;
221
- background: var(--h-content-background, var(--h-surface-frame));
222
- border: 1px solid var(--h-content-border-color);
223
- border-radius: 6px;
224
- margin: 0 4px 4px 0;
248
+ }
249
+ .hx-app-shell-body > [slot="panel"] {
250
+ flex: none;
251
+ margin-inline-start: var(--hx-panel-gap);
252
+ }
253
+ .hx-app-shell > .hx-status-bar {
254
+ border-block-start: 0;
225
255
  }
226
256
 
227
257
  .hx-app-toolbar {
@@ -0,0 +1,4 @@
1
+ {
2
+ "module": "../fesm2022/gravionlabs-helix-desktop-tauri.mjs",
3
+ "typings": "../types/gravionlabs-helix-desktop-tauri.d.ts"
4
+ }