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:
parent
8c87f59822
commit
d29cd3c657
@ -71,7 +71,7 @@ const FilesPage: FC = () => {
|
||||
columns={columns}
|
||||
style={{ width: '100%', marginBottom: 20 }}
|
||||
size="small"
|
||||
pagination={{ pageSize: 15 }}
|
||||
pagination={{ pageSize: 100 }}
|
||||
/>
|
||||
</VStack>
|
||||
</ContentContainer>
|
||||
|
||||
@ -46,6 +46,7 @@ const Markdown: FC<Props> = ({ message }) => {
|
||||
className="markdown"
|
||||
rehypePlugins={rehypePlugins}
|
||||
remarkPlugins={[remarkMath, remarkGfm]}
|
||||
disallowedElements={['style']}
|
||||
components={
|
||||
{
|
||||
a: Link,
|
||||
|
||||
@ -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`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user