feat: allow user select text
This commit is contained in:
parent
1bcb20f76a
commit
aebc432d53
@ -61,7 +61,6 @@ body {
|
|||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
user-select: none;
|
|
||||||
font-family:
|
font-family:
|
||||||
Inter,
|
Inter,
|
||||||
-apple-system,
|
-apple-system,
|
||||||
@ -80,6 +79,10 @@ body {
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
-webkit-user-drag: none;
|
||||||
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
#root {
|
#root {
|
||||||
|
|||||||
@ -39,7 +39,7 @@ const AssistantSettingPopupContainer: React.FC<Props> = ({ assistant, resolve })
|
|||||||
Description
|
Description
|
||||||
</Box>
|
</Box>
|
||||||
<TextArea
|
<TextArea
|
||||||
rows={4}
|
rows={2}
|
||||||
placeholder="Assistant Description"
|
placeholder="Assistant Description"
|
||||||
value={description}
|
value={description}
|
||||||
onChange={(e) => setDescription(e.target.value)}
|
onChange={(e) => setDescription(e.target.value)}
|
||||||
|
|||||||
@ -13,7 +13,7 @@ const Sidebar: FC = () => {
|
|||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<StyledLink to="/">
|
<StyledLink to="/">
|
||||||
<AvatarImg src={avatar || Logo} />
|
<AvatarImg src={avatar || Logo} draggable={false} />
|
||||||
</StyledLink>
|
</StyledLink>
|
||||||
<MainMenus>
|
<MainMenus>
|
||||||
<Menus>
|
<Menus>
|
||||||
@ -106,6 +106,9 @@ const Icon = styled.div`
|
|||||||
const StyledLink = styled(Link)`
|
const StyledLink = styled(Link)`
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
-webkit-app-region: none;
|
-webkit-app-region: none;
|
||||||
|
&* {
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export default Sidebar
|
export default Sidebar
|
||||||
|
|||||||
@ -124,6 +124,7 @@ const MessageContent = styled.div`
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.menubar {
|
.menubar {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
transition: opacity 0.2s ease;
|
||||||
&.show {
|
&.show {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -146,7 +146,9 @@ const PopupContainer: React.FC<Props> = ({ provider: _provider, resolve }) => {
|
|||||||
const onShowModelInfo = (model: Model) => {
|
const onShowModelInfo = (model: Model) => {
|
||||||
window.modal.info({
|
window.modal.info({
|
||||||
title: model.name,
|
title: model.name,
|
||||||
content: model.description
|
content: model.description,
|
||||||
|
icon: null,
|
||||||
|
maskClosable: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user