mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
messages: fixes mystery hamburger bouncing
This commit is contained in:
parent
9678a5619f
commit
e1462bc77c
@ -122,36 +122,32 @@ export function ResourceSkeleton(props: ResourceSkeletonProps): ReactElement {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const ExtraControls = () => {
|
const ExtraControls = () => {
|
||||||
if (workspace === '/messages') {
|
if (workspace === '/messages' && !resource.startsWith('dm-')) {
|
||||||
const resourceArr = association.resource.split('/');
|
return (
|
||||||
const resourceName = resourceArr[resourceArr.length - 1];
|
<Dropdown
|
||||||
if (!resourceName.startsWith('dm-')) {
|
flexShrink={0}
|
||||||
return (
|
dropWidth='300px'
|
||||||
<Dropdown
|
width='auto'
|
||||||
flexShrink={0}
|
alignY='top'
|
||||||
dropWidth='300px'
|
alignX='right'
|
||||||
width='auto'
|
options={
|
||||||
alignY='top'
|
<Col
|
||||||
alignX='right'
|
backgroundColor='white'
|
||||||
options={
|
border={1}
|
||||||
<Col
|
borderRadius={2}
|
||||||
backgroundColor='white'
|
borderColor='lightGray'
|
||||||
border={1}
|
color='washedGray'
|
||||||
borderRadius={2}
|
boxShadow='0px 0px 0px 3px'
|
||||||
borderColor='lightGray'
|
>
|
||||||
color='washedGray'
|
<MessageInvite association={association} api={api} />
|
||||||
boxShadow='0px 0px 0px 3px'
|
</Col>
|
||||||
>
|
}
|
||||||
<MessageInvite association={association} api={api} />
|
>
|
||||||
</Col>
|
<Text bold pr='3' color='blue'>
|
||||||
}
|
+ Add Ship
|
||||||
>
|
</Text>
|
||||||
<Text bold pr='3' color='blue'>
|
</Dropdown>
|
||||||
+ Add Ship
|
);
|
||||||
</Text>
|
|
||||||
</Dropdown>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (canWrite) {
|
if (canWrite) {
|
||||||
return (
|
return (
|
||||||
@ -173,7 +169,7 @@ export function ResourceSkeleton(props: ResourceSkeletonProps): ReactElement {
|
|||||||
|
|
||||||
const actionsRef = useCallback((actionsRef) => {
|
const actionsRef = useCallback((actionsRef) => {
|
||||||
setActionsWidth(actionsRef?.getBoundingClientRect().width);
|
setActionsWidth(actionsRef?.getBoundingClientRect().width);
|
||||||
}, []);
|
}, [rid]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Col width='100%' height='100%' overflow='hidden'>
|
<Col width='100%' height='100%' overflow='hidden'>
|
||||||
|
Loading…
Reference in New Issue
Block a user