@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
55 lines (43 loc) • 1.1 kB
text/typescript
import { Theme, css } from 'antd-style';
// fix ios input keyboard
// overflow: hidden;
// ref: https://zhuanlan.zhihu.com/p/113855026
export default ({ token }: { prefixCls: string; token: Theme }) => css`
html,
body,
#__next {
position: relative;
overscroll-behavior: none;
height: 100%;
min-height: 100dvh;
max-height: 100dvh;
background: ${token.colorBgLayout};
@media (min-device-width: 576px) {
overflow: hidden;
}
}
body {
/* 提高合成层级,强制硬件加速,否则会有渲染黑边出现 */
will-change: opacity;
transform: translateZ(0);
}
* {
scrollbar-color: ${token.colorFill} transparent;
scrollbar-width: thin;
::-webkit-scrollbar {
width: 0.75em;
height: 0.75em;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
}
:hover::-webkit-scrollbar-thumb {
border: 3px solid transparent;
background-color: ${token.colorText};
background-clip: content-box;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
}
`;