@adecore/ui 0.50.0 → 0.50.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.
@@ -21,6 +21,8 @@ export const FILE_TREE_CSS = `
21
21
  [data-item-section="content"] [data-truncate-content] { direction: ltr; }
22
22
  [data-item-section="content"] :where([data-truncate-content="overflow"], [data-truncate-marker-cell], [data-truncate-fill]) { display: none; }
23
23
  [data-item-section="git"] { margin-inline-end: var(--adecore-tree-status-space, 0px); }
24
+ /* The engine lifts the dot to the text's x-height; in a row of marks it belongs in the middle, with them. */
25
+ [data-item-section="git"] [data-icon-name="file-tree-icon-dot"] { transform: none; }
24
26
  ::highlight(${MATCH_HIGHLIGHT}) { background-color: var(--match); color: inherit; }
25
27
  [data-tree-port] { position: absolute; z-index: 4; display: flex; align-items: center; height: 25px; pointer-events: none; }
26
28
  [data-tree-port] > slot { pointer-events: auto; }
package/dist/theme.css CHANGED
@@ -842,7 +842,8 @@
842
842
  min-width: 0;
843
843
  min-height: 0;
844
844
  overflow: hidden;
845
- border-radius: 0 12px 12px 0;
845
+ /* Rounded where it meets the window's top, square where it stands on the window's bottom. */
846
+ border-radius: 0 12px 0 0;
846
847
  /* The surface its regions draw, so no lighter ground shows where the rounded edge cuts them. Roomy shows its gaps in it. */
847
848
  background: var(--surface);
848
849
  box-shadow: 0 0 0 1px var(--border), var(--sheet-shadow);
@@ -881,6 +882,8 @@
881
882
  .ade-workspace-sidebar[data-auto], .ade-workspace-side-panel[data-auto] { display: contents; }
882
883
  .ade-workspace[data-layout="roomy"],
883
884
  .ade-workspace[data-layout="roomy"] > .ade-workspace-sheet { background: var(--separator); }
885
+ /* The gaps already set the sheet apart, and a shadow over them reads as a smudge. */
886
+ .ade-workspace[data-layout="roomy"] > .ade-workspace-sheet { box-shadow: 0 0 0 1px var(--border); }
884
887
  .ade-workspace[data-layout="roomy"] > .ade-workspace-sheet > .ade-workspace-center { gap: 8px; }
885
888
  .ade-workspace[data-layout="roomy"] > .ade-workspace-sheet > .ade-workspace-sidebar:not([data-auto]) { margin-right: 8px; }
886
889
  .ade-workspace[data-layout="roomy"] > .ade-workspace-side-panel:not([data-auto]) { margin-left: 8px; }
@@ -270,7 +270,7 @@ export function Workspace(t0) {
270
270
  if ($[63] !== t23 || $[64] !== t24) {
271
271
  t25 = {
272
272
  top: t23,
273
- right: true,
273
+ right: false,
274
274
  bottom: true,
275
275
  left: t24
276
276
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/ui",
3
- "version": "0.50.0",
3
+ "version": "0.50.2",
4
4
  "description": "React components, a theme, formatters and a settings dialog for desktop-grade apps on React 19, Base UI and Tailwind 4.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "Bas Milius",
@@ -22,6 +22,8 @@ export const FILE_TREE_CSS = `
22
22
  [data-item-section="content"] [data-truncate-content] { direction: ltr; }
23
23
  [data-item-section="content"] :where([data-truncate-content="overflow"], [data-truncate-marker-cell], [data-truncate-fill]) { display: none; }
24
24
  [data-item-section="git"] { margin-inline-end: var(--adecore-tree-status-space, 0px); }
25
+ /* The engine lifts the dot to the text's x-height; in a row of marks it belongs in the middle, with them. */
26
+ [data-item-section="git"] [data-icon-name="file-tree-icon-dot"] { transform: none; }
25
27
  ::highlight(${MATCH_HIGHLIGHT}) { background-color: var(--match); color: inherit; }
26
28
  [data-tree-port] { position: absolute; z-index: 4; display: flex; align-items: center; height: 25px; pointer-events: none; }
27
29
  [data-tree-port] > slot { pointer-events: auto; }
package/src/theme.css CHANGED
@@ -842,7 +842,8 @@
842
842
  min-width: 0;
843
843
  min-height: 0;
844
844
  overflow: hidden;
845
- border-radius: 0 12px 12px 0;
845
+ /* Rounded where it meets the window's top, square where it stands on the window's bottom. */
846
+ border-radius: 0 12px 0 0;
846
847
  /* The surface its regions draw, so no lighter ground shows where the rounded edge cuts them. Roomy shows its gaps in it. */
847
848
  background: var(--surface);
848
849
  box-shadow: 0 0 0 1px var(--border), var(--sheet-shadow);
@@ -881,6 +882,8 @@
881
882
  .ade-workspace-sidebar[data-auto], .ade-workspace-side-panel[data-auto] { display: contents; }
882
883
  .ade-workspace[data-layout="roomy"],
883
884
  .ade-workspace[data-layout="roomy"] > .ade-workspace-sheet { background: var(--separator); }
885
+ /* The gaps already set the sheet apart, and a shadow over them reads as a smudge. */
886
+ .ade-workspace[data-layout="roomy"] > .ade-workspace-sheet { box-shadow: 0 0 0 1px var(--border); }
884
887
  .ade-workspace[data-layout="roomy"] > .ade-workspace-sheet > .ade-workspace-center { gap: 8px; }
885
888
  .ade-workspace[data-layout="roomy"] > .ade-workspace-sheet > .ade-workspace-sidebar:not([data-auto]) { margin-right: 8px; }
886
889
  .ade-workspace[data-layout="roomy"] > .ade-workspace-side-panel:not([data-auto]) { margin-left: 8px; }
@@ -85,8 +85,8 @@ export function Workspace({
85
85
  }
86
86
  });
87
87
 
88
- // The content ends at the sheet's own edge, whatever stands beside it.
89
- const context = { layout, edges: { top: !hasToolbar, right: true, bottom: true, left: !leftOpen } };
88
+ // The sheet's right edge is rounded, so panes along it keep their corners, whatever stands beside the sheet.
89
+ const context = { layout, edges: { top: !hasToolbar, right: false, bottom: true, left: !leftOpen } };
90
90
 
91
91
  return (
92
92
  <WorkspaceContext value={context}>