Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/add_resize-side-panel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: minor
---

Add Resize the sidepanels and the thread height of the original object using hoverable tools.
5 changes: 3 additions & 2 deletions src/app/components/nav/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const NavCategory = style([
DefaultReset,
{
position: 'relative',
overflow: 'scroll',
},
]);

Expand Down Expand Up @@ -107,8 +108,8 @@ export const NavItem = recipe({

export type RoomSelectorVariants = RecipeVariants<typeof NavItem>;
export const NavItemContent = style({
paddingLeft: config.space.S200,
paddingRight: config.space.S300,
paddingLeft: config.space.S300,
paddingRight: config.space.S200,
height: 'inherit',
minWidth: 0,
flexGrow: 1,
Expand Down
5 changes: 4 additions & 1 deletion src/app/components/page/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { DefaultReset, color, config, toRem } from 'folds';
export const PageNav = recipe({
variants: {
size: {
'100%': {
width: '100%',
},
'400': {
width: toRem(256),
},
Expand All @@ -15,7 +18,7 @@ export const PageNav = recipe({
},
},
defaultVariants: {
size: '400',
size: '100%',
},
});
export type PageNavVariants = RecipeVariants<typeof PageNav>;
Expand Down
54 changes: 38 additions & 16 deletions src/app/features/room-nav/RoomNavCategoryButton.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,48 @@
import { as, Chip, Icon, Icons, Text } from 'folds';
import { as, Chip, Icon, IconButton, Icons, Text } from 'folds';
import classNames from 'classnames';
import * as css from './styles.css';

export const RoomNavCategoryButton = as<'button', { closed?: boolean }>(
({ className, closed, children, ...props }, ref) => (
<Chip
className={classNames(css.CategoryButton, className)}
variant="Background"
radii="400"
after={
({ className, closed, children, ...props }, ref) => {
if (children)
return (
<Chip
className={classNames(css.CategoryButton, className)}
variant="Background"
radii="400"
before={
<Icon
className={css.CategoryButtonIcon}
size="50"
src={closed ? Icons.ChevronRight : Icons.ChevronBottom}
/>
}
{...props}
ref={ref}
>
{children && (
<Text size="B400" priority="300" truncate>
{children}
</Text>
)}
</Chip>
);
return (
<IconButton
className={classNames(css.CategoryButton, className)}
variant="Background"
radii="400"
{...props}
style={{ padding: '0' }}
ref={ref}
>
<Icon
className={css.CategoryButtonIcon}
size="50"
style={{ padding: '0' }}
src={closed ? Icons.ChevronRight : Icons.ChevronBottom}
/>
}
{...props}
ref={ref}
>
<Text size="B400" priority="300" truncate>
{children}
</Text>
</Chip>
)
</IconButton>
);
}
);
Loading
Loading