mirror of https://github.com/msgbyte/tailchat
fix: 修复频道过长无法滚动的问题
parent
6e0f4588e4
commit
5de2480ee2
@ -0,0 +1,18 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
interface CommonSidebarProps {
|
||||||
|
['data-tc-role']?: string;
|
||||||
|
}
|
||||||
|
export const CommonSidebarWrapper: React.FC<CommonSidebarProps> = React.memo(
|
||||||
|
(props) => {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className="h-full flex flex-col"
|
||||||
|
data-tc-role={props['data-tc-role']}
|
||||||
|
>
|
||||||
|
{props.children}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
CommonSidebarWrapper.displayName = 'CommonSidebarWrapper';
|
||||||
Loading…
Reference in New Issue