@bitbaum/chatkit 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/styles.css +17 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitbaum/chatkit",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "One chat for every product: a composer with a microphone that always works, a thread that does not fight the reader, messages with copy and retry, and LLM markdown \u2014 the fleet's chat standard as a package.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Cato",
|
package/styles.css
CHANGED
|
@@ -47,6 +47,11 @@
|
|
|
47
47
|
/* ChatScreen: the reading column, and the margin it keeps from the edge. */
|
|
48
48
|
--ck-measure: 48rem;
|
|
49
49
|
--ck-gutter: 1rem;
|
|
50
|
+
/* ChatScreen measures the floating header and dock into these; with no
|
|
51
|
+
ChatScreen they are 0. --ck-viewport-height is set by useViewportHeight. */
|
|
52
|
+
--ck-top-inset: 0px;
|
|
53
|
+
--ck-bottom-inset: 0px;
|
|
54
|
+
--ck-viewport-height: 100dvh;
|
|
50
55
|
/* The person's own words. Neutral, not the accent: the accent is for the
|
|
51
56
|
one thing to press, and a column of tinted pills spent it on every turn. */
|
|
52
57
|
--ck-bubble: var(--ck-raised);
|
|
@@ -629,11 +634,15 @@
|
|
|
629
634
|
position: absolute;
|
|
630
635
|
inset: 0 0 auto;
|
|
631
636
|
z-index: 3;
|
|
632
|
-
|
|
637
|
+
/* Mostly page behind the row itself, so a title in it stays one line of
|
|
638
|
+
text and not two on top of each other; the words only show through
|
|
639
|
+
dimly, and the fade runs out in the strip below the row. */
|
|
640
|
+
padding: env(safe-area-inset-top, 0px) var(--ck-gutter) 0.75rem;
|
|
633
641
|
background: linear-gradient(
|
|
634
642
|
to bottom,
|
|
635
643
|
var(--ck-page) 0%,
|
|
636
|
-
color-mix(in srgb, var(--ck-page)
|
|
644
|
+
color-mix(in srgb, var(--ck-page) 88%, transparent) 55%,
|
|
645
|
+
color-mix(in srgb, var(--ck-page) 55%, transparent) 80%,
|
|
637
646
|
transparent 100%
|
|
638
647
|
);
|
|
639
648
|
pointer-events: none;
|
|
@@ -686,6 +695,12 @@
|
|
|
686
695
|
.ck-screen-dock .ck-voice-bar {
|
|
687
696
|
border-radius: 1.75rem;
|
|
688
697
|
}
|
|
698
|
+
/* With no header, the words still fade at the top edge instead of being cut
|
|
699
|
+
off mid-line. */
|
|
700
|
+
.ck-screen:not(:has(> .ck-screen-header)) .ck-thread {
|
|
701
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.5rem);
|
|
702
|
+
mask-image: linear-gradient(to bottom, transparent 0, #000 1.5rem);
|
|
703
|
+
}
|
|
689
704
|
/* The thread scrolls the full width (the scrollbar sits at the screen's
|
|
690
705
|
edge, and a swipe anywhere moves it); its column keeps a reading measure. */
|
|
691
706
|
.ck-screen .ck-thread {
|