feat: improved data display and scrolling experience

- Increased file list pagination size to improve data display.
- Disable inline styles for Markdown content.
- Removed overflow functionality for a smoother scrolling experience.
This commit is contained in:
kangfenmao 2024-10-15 15:15:58 +08:00
parent 8c87f59822
commit d29cd3c657
3 changed files with 2 additions and 7 deletions

View File

@ -71,7 +71,7 @@ const FilesPage: FC = () => {
columns={columns}
style={{ width: '100%', marginBottom: 20 }}
size="small"
pagination={{ pageSize: 15 }}
pagination={{ pageSize: 100 }}
/>
</VStack>
</ContentContainer>

View File

@ -46,6 +46,7 @@ const Markdown: FC<Props> = ({ message }) => {
className="markdown"
rehypePlugins={rehypePlugins}
remarkPlugins={[remarkMath, remarkGfm]}
disallowedElements={['style']}
components={
{
a: Link,

View File

@ -198,14 +198,9 @@ const Topics: FC<Props> = ({ assistant: _assistant, activeTopic, setActiveTopic
const Container = styled.div`
display: flex;
flex: 1;
flex-direction: column;
padding-top: 10px;
overflow-y: scroll;
max-height: calc(100vh - var(--navbar-height) - 70px);
&::-webkit-scrollbar {
display: none;
}
`
const TopicListItem = styled.div`
@ -252,7 +247,6 @@ const TopicName = styled.div`
-webkit-box-orient: vertical;
overflow: hidden;
font-size: 13px;
opacity: 0.6;
`
const MenuButton = styled.div`