Skip to content

Commit

Permalink
fix height for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
snowystinger committed Jan 14, 2025
1 parent 31083d8 commit 10419df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@react-spectrum/s2/stories/TreeView.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default meta;


const TreeExampleStatic = (args) => (
<div style={{width: '300px', resize: 'both', height: '90vh', overflow: 'auto'}}>
<div style={{width: '300px', resize: 'both', height: '320px', overflow: 'auto'}}>
<TreeView
{...args}
disabledKeys={['projects-1']}
Expand Down Expand Up @@ -203,7 +203,7 @@ let rows = [
];

const TreeExampleDynamic = (args) => (
<div style={{width: '300px', resize: 'both', height: '90vh', overflow: 'auto', display: 'flex', flexDirection: 'column'}}>
<div style={{width: '300px', resize: 'both', height: '320px', overflow: 'auto', display: 'flex', flexDirection: 'column'}}>
<TreeView disabledKeys={['reports-1AB']} aria-label="test dynamic tree" items={rows} onExpandedChange={action('onExpandedChange')} onSelectionChange={action('onSelectionChange')} {...args}>
{(item: any) => (
<TreeViewItem childItems={item.childItems} textValue={item.name}>
Expand Down Expand Up @@ -256,7 +256,7 @@ export const Empty = {
};

const TreeExampleWithLinks = (args) => (
<div style={{width: '300px', resize: 'both', height: '90vh', overflow: 'auto'}}>
<div style={{width: '300px', resize: 'both', height: '320px', overflow: 'auto'}}>
<TreeView {...args} disabledKeys={['reports-1AB']} aria-label="test dynamic tree" items={rows} onExpandedChange={action('onExpandedChange')} onSelectionChange={action('onSelectionChange')}>
{(item) => (
<TreeViewItem href="https://adobe.com/" childItems={item.childItems} textValue={item.name}>
Expand Down

0 comments on commit 10419df

Please sign in to comment.