Skip to content

Commit 9b8e67d

Browse files
committed
fix: ai panel scrollbar not appearing in chromium
1 parent 6134a6a commit 9b8e67d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/styles/Extn-AIChatPanel.less

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2905,6 +2905,26 @@
29052905
the inner cards' default min-width:auto prevents shrink. */
29062906
min-width: 0;
29072907
width: 100%;
2908+
flex: 1 1 auto;
2909+
min-height: 0;
2910+
overflow-y: auto;
2911+
scrollbar-width: thin;
2912+
scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
2913+
2914+
&::-webkit-scrollbar {
2915+
width: 9px;
2916+
height: 9px;
2917+
background-color: transparent;
2918+
}
2919+
&::-webkit-scrollbar-thumb {
2920+
border-radius: 999px;
2921+
background-color: rgba(255, 255, 255, 0.3) !important;
2922+
background-clip: padding-box !important;
2923+
border: 2px solid transparent !important;
2924+
}
2925+
&::-webkit-scrollbar-thumb:hover {
2926+
background-color: rgba(255, 255, 255, 0.45) !important;
2927+
}
29082928

29092929
/* The chat panel sets `white-space: nowrap` higher up so streaming
29102930
chat lines don't reflow mid-token. Reset it here so all text in the
@@ -2947,6 +2967,12 @@
29472967
gap: 0;
29482968
}
29492969

2970+
.ai-placeholder .ai-intro-video-thumb {
2971+
max-height: ~"min(220px, 28vh)";
2972+
max-width: ~"calc(min(220px, 28vh) * 16 / 9)";
2973+
align-self: flex-start;
2974+
}
2975+
29502976
.ai-placeholder-cards {
29512977
list-style: none;
29522978
margin: 0;

0 commit comments

Comments
 (0)