padding stuff
This commit is contained in:
parent
8d2a0081a5
commit
ba4598d25b
4 changed files with 14 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { useEffect } from "react";
|
||||
import { useInView } from "react-intersection-observer";
|
||||
import { vscBackground } from ".";
|
||||
|
||||
interface ChatScrollAnchorProps {
|
||||
trackVisibility: boolean;
|
||||
|
|
@ -25,5 +26,13 @@ export function ChatScrollAnchor({
|
|||
}
|
||||
}, [inView, entry, isAtBottom, trackVisibility]);
|
||||
|
||||
return <div ref={ref} className="h-px w-full" />;
|
||||
return (
|
||||
<div
|
||||
ref={ref}
|
||||
className="h-px w-full"
|
||||
style={{
|
||||
backgroundColor: vscBackground,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ interface StepContainerProps {
|
|||
|
||||
const ContentDiv = styled.div<{ fontSize?: number }>`
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
background-color: ${vscBackground};
|
||||
font-size: ${getFontSize()}px;
|
||||
overflow: hidden;
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ function ContinueInputBox(props: ContinueInputBoxProps) {
|
|||
}, [isGatheringContextStore]);
|
||||
|
||||
return (
|
||||
<div className={`mb-1 ${props.hidden ? "hidden" : ""}`}>
|
||||
<div className={`${props.hidden ? "hidden" : ""}`}>
|
||||
<div className={`relative flex px-2`}>
|
||||
<GradientBorder
|
||||
loading={active && props.isLastUserInput ? 1 : 0}
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ const StepsDiv = styled.div`
|
|||
}
|
||||
|
||||
.thread-message {
|
||||
margin: 8px 4px 0 4px;
|
||||
margin: 0px 4px 0 4px;
|
||||
}
|
||||
`;
|
||||
|
||||
|
|
@ -329,7 +329,7 @@ export function Chat() {
|
|||
{widget}
|
||||
<StepsDiv
|
||||
ref={stepsDivRef}
|
||||
className={`overflow-y-scroll pt-[8px] ${showScrollbar ? "thin-scrollbar" : "no-scrollbar"} ${state.history.length > 0 ? "h-full" : ""}`}
|
||||
className={`mt-[8px] overflow-y-scroll ${showScrollbar ? "thin-scrollbar" : "no-scrollbar"} ${state.history.length > 0 ? "h-full" : ""}`}
|
||||
onScroll={handleScroll}
|
||||
>
|
||||
{highlights}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue