fix(pages): make install-channel command box scrollable (#912)

This commit is contained in:
Tao Xin
2026-08-17 19:53:04 +08:00
committed by GitHub
parent b741d7d0b5
commit ec5f6851d2
2 changed files with 27 additions and 2 deletions
+5 -2
View File
@@ -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}
+22
View File
@@ -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;
}
.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; }