feat: allow user select text
This commit is contained in:
parent
1bcb20f76a
commit
aebc432d53
@ -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 {
|
||||
|
||||
@ -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)}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -124,6 +124,7 @@ const MessageContent = styled.div`
|
||||
justify-content: space-between;
|
||||
.menubar {
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
&.show {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user