Skip to content

Commit

Permalink
UI: removing bottom padding
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Aug 20, 2024
1 parent 0132a92 commit 10369e3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions frontend/src/components/Jupyter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import Markdown from "react-markdown";
import { atomOneDark } from "react-syntax-highlighter/dist/esm/styles/hljs";
import { VscArrowDown, VscArrowUp } from "react-icons/vsc";
import { useTranslation } from "react-i18next";
import { Textarea } from "@nextui-org/react";
import { RootState } from "#/store";
import { Cell, appendJupyterInput } from "#/state/jupyterSlice";
import { useScrollToBottom } from "#/hooks/useScrollToBottom";
import { I18nKey } from "#/i18n/declaration";
import { sendJupyterCode } from "#/services/chatService";
import { Textarea } from "@nextui-org/react";

interface IJupyterCell {
cell: Cell;
Expand Down Expand Up @@ -109,7 +109,7 @@ function Jupyter(): JSX.Element {
return (
<div className="flex-1">
<div
className="overflow-y-auto h-full max-h-[85%] scrollbar-custom scrollbar-thumb-gray-500 hover:scrollbar-thumb-gray-400 dark:scrollbar-thumb-white/10 dark:hover:scrollbar-thumb-white/20"
className="overflow-y-auto h-full max-h-full scrollbar-custom scrollbar-thumb-gray-500 hover:scrollbar-thumb-gray-400 dark:scrollbar-thumb-white/10 dark:hover:scrollbar-thumb-white/20"
ref={jupyterRef}
onScroll={(e) => onChatBodyScroll(e.currentTarget)}
>
Expand All @@ -132,16 +132,13 @@ function Jupyter(): JSX.Element {
</button>
</div>
)}
<div
className="sticky bottom-2 flex items-center p-2 border-t border-neutral-600 bg-neutral-800"
onKeyDown={onKeyPress}
>
<div className="sticky bottom-0 flex p-1 border-t" onKeyDown={onKeyPress}>
<Textarea
value={inputValue}
onChange={(e) => setInputValue(e.target.value)}
onKeyDown={onKeyPress}
placeholder="Enter Python code here..."
className="pb-3 px-3"
className="p-1"
classNames={{
inputWrapper: "bg-neutral-700 border border-neutral-600 rounded-lg",
input: "pr-16 text-neutral-400",
Expand Down

0 comments on commit 10369e3

Please sign in to comment.