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.

📝 docs(bot): Auto sync agents & plugin to readme

lobehubbot2e8031f865ec
diff --git a/changelog/v1.json b/changelog/v1.json
index 7f3ff2ad875..e3c786b47ba 100644
--- a/changelog/v1.json
+++ b/changelog/v1.json
@@ -1,4 +1,11 @@
[
+ {
+ "children": {
+ "features": ["Create Pages in Knowledge Base."]
+ },
+ "date": "2025-11-14",
+ "version": "2.0.0-next.55"
+ },
{
"children": {
"improvements": ["Refactor and support move locale file intervention."]
diff --git a/src/app/[variants]/(main)/knowledge/components/KnowledgeBaseItem/index.tsx b/src/app/[variants]/(main)/knowledge/components/KnowledgeBaseItem/index.tsx
index 36734a53602..51b1a2e9821 100644
--- a/src/app/[variants]/(main)/knowledge/components/KnowledgeBaseItem/index.tsx
+++ b/src/app/[variants]/(main)/knowledge/components/KnowledgeBaseItem/index.tsx
@@ -16,7 +16,6 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
`,
container: css`
cursor: pointer;
-
padding-block: 4px;
padding-inline: 8px;
border-radius: ${token.borderRadius}px;
diff --git a/src/features/KnowledgeManager/Home/RecentDocumentCard.tsx b/src/features/KnowledgeManager/Home/RecentDocumentCard.tsx
index 33076ad8f04..d43486e394d 100644
--- a/src/features/KnowledgeManager/Home/RecentDocumentCard.tsx
+++ b/src/features/KnowledgeManager/Home/RecentDocumentCard.tsx
@@ -38,9 +38,9 @@ const useStyles = createStyles(({ css, token }) => ({
user-select: none;
position: relative;
- flex-shrink: 0;
overflow: hidden;
+ flex-shrink: 0;
width: 280px;
height: 180px;
@@ -57,23 +57,24 @@ const useStyles = createStyles(({ css, token }) => ({
}
`,
noteContent: css`
+ overflow: hidden;
display: flex;
flex-direction: column;
gap: 8px;
- padding: 12px;
+
height: 100%;
- overflow: hidden;
+ padding: 12px;
`,
notePreview: css`
overflow: hidden;
display: -webkit-box;
+ flex: 1;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
font-size: 13px;
line-height: 1.6;
color: ${token.colorTextSecondary};
- flex: 1;
`,
noteTitle: css`
overflow: hidden;
diff --git a/src/features/KnowledgeManager/Home/RecentFileCard.tsx b/src/features/KnowledgeManager/Home/RecentFileCard.tsx
index fcc3a1ee468..e9c588bfb38 100644
--- a/src/features/KnowledgeManager/Home/RecentFileCard.tsx
+++ b/src/features/KnowledgeManager/Home/RecentFileCard.tsx
@@ -24,9 +24,9 @@ const useStyles = createStyles(({ css, token }) => ({
cursor: pointer;
position: relative;
- flex-shrink: 0;
overflow: hidden;
+ flex-shrink: 0;
width: 280px;
padding: 12px;
@@ -46,9 +46,11 @@ const useStyles = createStyles(({ css, token }) => ({
display: flex;
align-items: center;
justify-content: center;
+
height: 160px;
margin-block-end: 12px;
border-radius: ${token.borderRadius}px;
+
background: ${token.colorBgLayout};
`,
imagePreview: css`
@@ -56,8 +58,9 @@ const useStyles = createStyles(({ css, token }) => ({
height: 160px;
margin-block-end: 12px;
border-radius: ${token.borderRadius}px;
- background: ${token.colorBgLayout};
+
object-fit: cover;
+ background: ${token.colorBgLayout};
`,
info: css`
font-size: 12px;
diff --git a/src/features/KnowledgeManager/Home/RecentFilesSkeleton.tsx b/src/features/KnowledgeManager/Home/RecentFilesSkeleton.tsx
index 7dde5943136..61a8c18724d 100644
--- a/src/features/KnowledgeManager/Home/RecentFilesSkeleton.tsx
+++ b/src/features/KnowledgeManager/Home/RecentFilesSkeleton.tsx
@@ -22,10 +22,10 @@ const useStyles = createStyles(({ css, token }) => ({
`,
fadeEdge: css`
pointer-events: none;
+
position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
+ inset-block: 0 0;
+ inset-inline-end: 0;
width: 80px;
@@ -36,16 +36,19 @@ const useStyles = createStyles(({ css, token }) => ({
height: 160px;
margin-block-end: 12px;
border-radius: ${token.borderRadius}px;
+
background: ${token.colorFillQuaternary};
`,
scrollContainer: css`
+ /* Hide scrollbar */
+ scrollbar-width: none;
+
+ overflow-x: auto;
display: flex;
gap: 16px;
- overflow-x: auto;
- padding-bottom: 8px;
- /* Hide scrollbar */
- scrollbar-width: none;
+ padding-block-end: 8px;
+
-ms-overflow-style: none;
&::-webkit-scrollbar {
@@ -76,4 +79,3 @@ const RecentFilesSkeleton = memo(() => {
});
export default RecentFilesSkeleton;
-