@oxy.so/bloom 22.1.9 → 22.1.10
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/docs/list.mdx +3 -2
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/list/ListItemBase.js +5 -5
- package/lib/commonjs/list/ListItemBase.js.map +1 -1
- package/lib/commonjs/list/list-style.js +5 -1
- package/lib/commonjs/list/list-style.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarFolder.js +1 -1
- package/lib/commonjs/sidebar/SidebarFolder.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarItem.js +1 -1
- package/lib/commonjs/sidebar/SidebarItem.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarTreeSection.js +1 -1
- package/lib/commonjs/sidebar/SidebarTreeSection.js.map +1 -1
- package/lib/module/list/ListItemBase.js +6 -6
- package/lib/module/list/ListItemBase.js.map +1 -1
- package/lib/module/list/list-style.js +4 -0
- package/lib/module/list/list-style.js.map +1 -1
- package/lib/module/sidebar/SidebarFolder.js +2 -2
- package/lib/module/sidebar/SidebarFolder.js.map +1 -1
- package/lib/module/sidebar/SidebarItem.js +1 -1
- package/lib/module/sidebar/SidebarItem.js.map +1 -1
- package/lib/module/sidebar/SidebarTreeSection.js +2 -2
- package/lib/module/sidebar/SidebarTreeSection.js.map +1 -1
- package/lib/typescript/commonjs/list/ListItemBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/list-style.d.ts +4 -0
- package/lib/typescript/commonjs/list/list-style.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarTreeSection.d.ts +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarTreeSection.d.ts.map +1 -1
- package/lib/typescript/module/list/ListItemBase.d.ts.map +1 -1
- package/lib/typescript/module/list/list-style.d.ts +4 -0
- package/lib/typescript/module/list/list-style.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarTreeSection.d.ts +1 -1
- package/lib/typescript/module/sidebar/SidebarTreeSection.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/list/ListItemBase.tsx +14 -6
- package/src/list/list-style.ts +4 -0
- package/src/sidebar/SidebarFolder.tsx +2 -2
- package/src/sidebar/SidebarItem.tsx +1 -1
- package/src/sidebar/SidebarTreeSection.tsx +2 -2
|
@@ -104,7 +104,7 @@ const SidebarItemComponent: React.FC<SidebarItemProps> = ({
|
|
|
104
104
|
// small sidebar's label fits without inheriting the larger collapsed square.
|
|
105
105
|
// This stays a minimum so larger system fonts can grow without clipping.
|
|
106
106
|
height: collapsed ? metrics.row.square : undefined,
|
|
107
|
-
minHeight: collapsed ? metrics.row.square : metrics.row.minHeight,
|
|
107
|
+
minHeight: collapsed ? metrics.row.square : Math.max(metrics.row.square, metrics.row.minHeight),
|
|
108
108
|
paddingLeft: metrics.row.padding,
|
|
109
109
|
paddingRight: metrics.row.padding,
|
|
110
110
|
paddingTop: metrics.row.paddingVertical,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ListItem } from '../list';
|
|
2
|
-
import {
|
|
2
|
+
import { LIST_ROW_COMPACT_INSET } from '../list/list-style';
|
|
3
3
|
import React, { memo, useCallback, useEffect, useRef, type ComponentRef } from 'react';
|
|
4
4
|
import {
|
|
5
5
|
Pressable,
|
|
@@ -52,7 +52,7 @@ export const TREE_INDENT = 16;
|
|
|
52
52
|
* Where a top-level row's content starts (its disclosure, glyph, avatar or label), and so where
|
|
53
53
|
* the section's label and status start: one edge from the title down.
|
|
54
54
|
*/
|
|
55
|
-
export const TREE_INSET =
|
|
55
|
+
export const TREE_INSET = LIST_ROW_COMPACT_INSET;
|
|
56
56
|
/** Where a row's `actions` end: the section's own `actions` end there too. */
|
|
57
57
|
const TREE_ACTIONS_INSET = 4;
|
|
58
58
|
/** Long enough that a press opens the row and a swipe still scrolls the sidebar. */
|