Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions pages/src/components/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -518,13 +518,16 @@ const HeroSection: React.FC = () => {
}}
>
<span
className="command-scroll"
style={{
flex: 1,
minWidth: 0,
fontSize: 13,
fontFamily: 'Menlo, monospace',
color: 'rgba(255,255,255,0.85)',
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
overflowX: 'auto',
overflowY: 'hidden',
}}
>
{activeChannel.cmd}
Expand Down
22 changes: 22 additions & 0 deletions pages/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,28 @@ a {
background: rgba(255,255,255,0.3);
}

.command-scroll {
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
Comment thread
wu21-web marked this conversation as resolved.

.command-scroll::-webkit-scrollbar {
height: 4px;
}

.command-scroll::-webkit-scrollbar-track {
background: transparent;
}

.command-scroll::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15);
border-radius: 2px;
}

.command-scroll::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}

/* Terminal cursor blink */
@keyframes cursor-blink {
0%, 100% { opacity: 1; }
Expand Down
Loading