Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Jan 22, 2025
1 parent 3e58cf2 commit 0d24cc0
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/app/chat/message/MemoizedTextComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const MemoizedAnchor = memo(
const index = parseInt(match[1], 10) - 1;
const associatedDoc = docs?.[index];
if (!associatedDoc) {
return <>{children}</>;
return <a href={children as string}>{children}</a>;
}

let icon: React.ReactNode = null;
Expand Down
42 changes: 42 additions & 0 deletions web/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,53 @@
overflow-x: hidden;
}

.scrollbar {
width: 100%;
height: 100%;
}

/* Styling for textarea scrollbar */
textarea::-webkit-scrollbar {
width: 8px;
}

textarea::-webkit-scrollbar-track {
background: var(--scrollbar-track);
border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
background: var(--scrollbar-thumb);
border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
background: var(--scrollbar-thumb-hover);
}

/* Styling for textarea resize handle */
textarea {
resize: vertical;
}

/* For Firefox */
textarea {
scrollbar-width: thin;
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.inputscroll::-webkit-scrollbar-track {
background: #e5e7eb;
scrollbar-width: none;
}

::-webkit-scrollbar {
width: 0px;
/* Vertical scrollbar width */
height: 8px;
/* Horizontal scrollbar height */
}

::-webkit-scrollbar-track {
background: transparent;
/* background: theme("colors.scrollbar.track"); */
Expand Down

0 comments on commit 0d24cc0

Please sign in to comment.