padding stuff

This commit is contained in:
Nate 2024-11-19 14:04:55 -08:00
parent 8d2a0081a5
commit ba4598d25b
4 changed files with 14 additions and 4 deletions

View file

@ -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,
}}
/>
);
}

View file

@ -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;

View file

@ -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}

View file

@ -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}