.katex-display { overflow: auto hidden; padding-top: 10px; padding-bottom: 10px; } .katex-display::-webkit-scrollbar { width: 10px; height: 5px; } .katex-display::-webkit-scrollbar-track { border-radius: 3px; background: rgba(207, 199, 199, 0.05); -webkit-box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.08); } .katex-display::-webkit-scrollbar-thumb { border-radius: 3px; background: rgb(232, 229, 229); -webkit-box-shadow: inset 0 0 50px rgba(169, 160, 160, 0.2); }