Skip to content

Commit fa0ce95

Browse files
committed
use scroll in user message card
1 parent e19bca6 commit fa0ce95

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

compact.cirru

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,19 +1013,27 @@
10131013
"\"&" $ {} (:font-size 12)
10141014
:color $ hsl 0 0 50
10151015
:margin-bottom 6
1016+
:padding-right "\"16px"
10161017
:examples $ []
10171018
|style-message-text $ %{} :CodeEntry (:doc |)
10181019
:code $ quote
10191020
defstyle style-message-text $ {}
1020-
"\"&" $ {} (:white-space :pre-wrap) (:line-height "\"1.6") (:margin 0)
1021+
"\"&" $ {} (:white-space :pre-wrap) (:line-height "\"1.6") (:margin 0) (:padding-right "\"16px")
10211022
:examples $ []
10221023
|style-message-user $ %{} :CodeEntry (:doc |)
10231024
:code $ quote
10241025
defstyle style-message-user $ {}
10251026
"\"&" $ {} (:align-self :flex-end)
10261027
:background-color $ hsl 0 0 96
1027-
:padding "\"12px 16px"
1028+
:padding "\"12px 0 12px 16px"
10281029
:border-radius 10
1030+
:max-height "\"240px"
1031+
:overflow-y :auto
1032+
"\"&::-webkit-scrollbar" $ {} (:width "\"4px")
1033+
"\"&::-webkit-scrollbar-thumb" $ {}
1034+
:background-color $ hsl 0 0 80
1035+
:border-radius "\"2px"
1036+
"\"&::-webkit-scrollbar-track" $ {} (:background-color :transparent)
10291037
:examples $ []
10301038
|style-more $ %{} :CodeEntry (:doc |)
10311039
:code $ quote

0 commit comments

Comments
 (0)