feat: allow user select text

This commit is contained in:
kangfenmao 2024-07-11 23:07:38 +08:00
parent 1bcb20f76a
commit aebc432d53
5 changed files with 13 additions and 4 deletions

View File

@ -61,7 +61,6 @@ body {
line-height: 1.6;
overflow: hidden;
background-size: cover;
user-select: none;
font-family:
Inter,
-apple-system,
@ -80,6 +79,10 @@ body {
-moz-osx-font-smoothing: grayscale;
}
a {
-webkit-user-drag: none;
}
html,
body,
#root {

View File

@ -39,7 +39,7 @@ const AssistantSettingPopupContainer: React.FC<Props> = ({ assistant, resolve })
Description
</Box>
<TextArea
rows={4}
rows={2}
placeholder="Assistant Description"
value={description}
onChange={(e) => setDescription(e.target.value)}

View File

@ -13,7 +13,7 @@ const Sidebar: FC = () => {
return (
<Container>
<StyledLink to="/">
<AvatarImg src={avatar || Logo} />
<AvatarImg src={avatar || Logo} draggable={false} />
</StyledLink>
<MainMenus>
<Menus>
@ -106,6 +106,9 @@ const Icon = styled.div`
const StyledLink = styled(Link)`
text-decoration: none;
-webkit-app-region: none;
&* {
user-select: none;
}
`
export default Sidebar

View File

@ -124,6 +124,7 @@ const MessageContent = styled.div`
justify-content: space-between;
.menubar {
opacity: 0;
transition: opacity 0.2s ease;
&.show {
opacity: 1;
}

View File

@ -146,7 +146,9 @@ const PopupContainer: React.FC<Props> = ({ provider: _provider, resolve }) => {
const onShowModelInfo = (model: Model) => {
window.modal.info({
title: model.name,
content: model.description
content: model.description,
icon: null,
maskClosable: true
})
}