Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style: drop ScrollArea content typography workarounds after @lobehub/ui 5.42.7 (#19463)

Innei0b39ca88f347
diff --git a/package.json b/package.json
index 1719b340754..7f81f0cebef 100644
--- a/package.json
+++ b/package.json
@@ -315,7 +315,7 @@
"@lobehub/icons": "^5.18.0",
"@lobehub/market-sdk": "0.41.0",
"@lobehub/tts": "^5.1.2",
- "@lobehub/ui": "^5.42.2",
+ "@lobehub/ui": "^5.42.7",
"@modelcontextprotocol/sdk": "^1.30.0",
"@neondatabase/serverless": "^1.1.0",
"@next/third-parties": "^16.3.0",
diff --git a/src/components/StreamingMarkdown/index.tsx b/src/components/StreamingMarkdown/index.tsx
index f2ff5c62c95..b52faa3cc81 100644
--- a/src/components/StreamingMarkdown/index.tsx
+++ b/src/components/StreamingMarkdown/index.tsx
@@ -44,15 +44,6 @@ const StreamingMarkdown = memo<StreamingMarkdownProps>(({ children, maxHeight =
disableContentFit
scrollFade
className={styles.scrollRoot}
- contentProps={{
- style: {
- color: 'inherit',
- display: 'block',
- fontSize: 'inherit',
- gap: 0,
- lineHeight: 'inherit',
- },
- }}
viewportProps={{
className: styles.container,
ref: ref as RefObject<HTMLDivElement>,
diff --git a/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx b/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx
index 19278cc32f4..e57f269c5a0 100644
--- a/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx
+++ b/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx
@@ -23,10 +23,6 @@ const styles = createStaticStyles(({ css }) => ({
margin-block-start: 8px;
border: 1px solid ${cssVar.colorBorderSecondary};
border-radius: ${cssVar.borderRadius};
-
- > [role='presentation'] > [role='presentation'] {
- gap: 0;
- }
`,
row: css`
padding-block: 6px;
diff --git a/src/features/ConnectAgent/index.tsx b/src/features/ConnectAgent/index.tsx
index 5a02d414d94..707a79699ef 100644
--- a/src/features/ConnectAgent/index.tsx
+++ b/src/features/ConnectAgent/index.tsx
@@ -295,7 +295,6 @@ const ScrollableAgentList = memo<{ children: ReactNode }>(({ children }) => (
disableContentFit
scrollFade
className={styles.groupList}
- contentProps={{ style: { display: 'block' } }}
scrollbarProps={{ className: styles.agentListScrollbar }}
thumbProps={{ className: styles.agentListThumb }}
viewportProps={{ className: styles.agentListViewport }}
diff --git a/src/features/Conversation/Messages/AgentCouncil/components/AutoScrollShadow.tsx b/src/features/Conversation/Messages/AgentCouncil/components/AutoScrollShadow.tsx
index d02bf4da2bb..99c82999f73 100644
--- a/src/features/Conversation/Messages/AgentCouncil/components/AutoScrollShadow.tsx
+++ b/src/features/Conversation/Messages/AgentCouncil/components/AutoScrollShadow.tsx
@@ -32,15 +32,6 @@ const AutoScrollShadow = memo<AutoScrollShadowProps>(({ children, content, strea
<ScrollArea
scrollFade
style={{ background: 'transparent', borderRadius: 0 }}
- contentProps={{
- style: {
- color: 'inherit',
- display: 'block',
- fontSize: 'inherit',
- gap: 0,
- lineHeight: 'inherit',
- },
- }}
viewportProps={{
ref: ref as RefObject<HTMLDivElement>,
style: { height: 'max(33vh, 480px)' },
diff --git a/src/features/Conversation/Messages/AssistantGroup/components/ContentBlocksScroll.tsx b/src/features/Conversation/Messages/AssistantGroup/components/ContentBlocksScroll.tsx
index 965f2976f4a..ef17e814dd8 100644
--- a/src/features/Conversation/Messages/AssistantGroup/components/ContentBlocksScroll.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/components/ContentBlocksScroll.tsx
@@ -44,8 +44,7 @@ interface ContentBlocksScrollFromMessages extends ContentBlocksScrollBaseProps {
}
export type ContentBlocksScrollProps =
- | ContentBlocksScrollFromBlocks
- | ContentBlocksScrollFromMessages;
+ ContentBlocksScrollFromBlocks | ContentBlocksScrollFromMessages;
const ContentBlocksScroll = memo<ContentBlocksScrollProps>((props) => {
const { disableEditing, onScroll, scroll = true, scrollRef, variant } = props;
@@ -93,16 +92,7 @@ const ContentBlocksScroll = memo<ContentBlocksScrollProps>((props) => {
disableContentFit
scrollFade
className={styles.scrollRoot}
- contentProps={{
- style: {
- color: 'inherit',
- display: 'block',
- fontSize: 'inherit',
- gap: 0,
- lineHeight: 'inherit',
- paddingInlineEnd: 12,
- },
- }}
+ contentProps={{ style: { paddingInlineEnd: 12 } }}
scrollbarProps={{
style: {
marginInlineEnd: 2,
diff --git a/src/features/Conversation/components/Thinking/index.tsx b/src/features/Conversation/components/Thinking/index.tsx
index 74ecc506777..8ca5211a40c 100644
--- a/src/features/Conversation/components/Thinking/index.tsx
+++ b/src/features/Conversation/components/Thinking/index.tsx
@@ -65,15 +65,6 @@ const Thinking = memo<ThinkingProps>((props) => {
disableContentFit
scrollFade
className={styles.scrollRoot}
- contentProps={{
- style: {
- color: 'inherit',
- display: 'block',
- fontSize: 'inherit',
- gap: 0,
- lineHeight: 'inherit',
- },
- }}
viewportProps={{
className: styles.contentScroll,
ref: ref as RefObject<HTMLDivElement>,