Skip to content

Commit

Permalink
style(web): Increase height of bug fix and basic page message box
Browse files Browse the repository at this point in the history
  • Loading branch information
MiladSadeghi committed Dec 4, 2024
1 parent 644d7e4 commit 1d04c54
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions web/src/pages/basic/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Basic: FC = () => {

return (
<div className="flex h-[calc(100vh-56px)] w-full items-center justify-center text-black dark:text-white">
<div className="w-full max-w-[768px]">
<div className="w-full max-w-[1024px]">
<div className="w-full rounded-md p-2">
<div className="flex h-full w-full items-center justify-center gap-3">
<div className="flex w-full flex-col">
Expand All @@ -72,7 +72,7 @@ const Basic: FC = () => {
type="number"
value={minToken}
onChange={(e) => setMinToken(e.target.value)}
className="dark:bg-black-1 w-full rounded-md bg-gray-200 p-3 outline-none"
className="w-full rounded-md bg-gray-200 p-3 outline-none dark:bg-black-1"
/>
</div>
<div className="flex w-full flex-col">
Expand All @@ -84,7 +84,7 @@ const Basic: FC = () => {
type="number"
value={maxToken}
onChange={(e) => setMaxToken(e.target.value)}
className="dark:bg-black-1 w-full rounded-md bg-gray-200 p-3 outline-none"
className="w-full rounded-md bg-gray-200 p-3 outline-none dark:bg-black-1"
/>
</div>
<div className="flex w-full flex-col">
Expand All @@ -96,14 +96,14 @@ const Basic: FC = () => {
type="text"
value={service}
onChange={(e) => setService(e.target.value)}
className="dark:bg-black-1 w-full rounded-md bg-gray-200 p-3 outline-none"
className="w-full rounded-md bg-gray-200 p-3 outline-none dark:bg-black-1"
/>
</div>
</div>
<div className="mt-4">
<div
ref={messagesRef}
className="h-96 w-full overflow-y-auto rounded-md bg-slate-900 p-3 scrollbar-thin scrollbar-track-transparent scrollbar-corner-transparent"
className="h-[550px] w-full overflow-y-auto rounded-md bg-slate-900 p-3 scrollbar-thin scrollbar-track-transparent scrollbar-corner-transparent"
>
{messages.map((message) =>
message.role === 'user' ? (
Expand Down Expand Up @@ -131,7 +131,7 @@ const Basic: FC = () => {
value={input}
onChange={(e) => setInput(e.target.value)}
rows={2}
className="dark:bg-black-1 w-full resize-none rounded-md bg-gray-200 p-4 pr-16 outline-none"
className="w-full resize-none rounded-md bg-gray-200 p-4 pr-16 outline-none dark:bg-black-1"
/>
<button
disabled={!input}
Expand Down
14 changes: 7 additions & 7 deletions web/src/pages/bug-fix/bug-fix.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const BugFix: FC = () => {

return (
<div className="flex h-[calc(100vh-56px)] w-full items-center justify-center text-black dark:text-white">
<div className="w-full max-w-[768px]">
<div className="w-full max-w-[1024px]">
<div className="w-full rounded-md p-2">
<div className="flex h-full w-full items-center justify-center gap-3">
<div className="flex w-full flex-col">
Expand All @@ -77,7 +77,7 @@ const BugFix: FC = () => {
type="number"
value={minToken}
onChange={(e) => setMinToken(e.target.value)}
className="dark:bg-black-1 w-full rounded-md bg-gray-200 p-3 outline-none"
className="w-full rounded-md bg-gray-200 p-3 outline-none dark:bg-black-1"
/>
</div>
<div className="flex w-full flex-col">
Expand All @@ -89,7 +89,7 @@ const BugFix: FC = () => {
type="number"
value={maxToken}
onChange={(e) => setMaxToken(e.target.value)}
className="dark:bg-black-1 w-full rounded-md bg-gray-200 p-3 outline-none"
className="w-full rounded-md bg-gray-200 p-3 outline-none dark:bg-black-1"
/>
</div>
<div className="flex w-full flex-col">
Expand All @@ -101,7 +101,7 @@ const BugFix: FC = () => {
type="text"
value={service}
onChange={(e) => setService(e.target.value)}
className="dark:bg-black-1 w-full rounded-md bg-gray-200 p-3 outline-none"
className="w-full rounded-md bg-gray-200 p-3 outline-none dark:bg-black-1"
/>
</div>
<div className="flex w-full flex-col">
Expand All @@ -113,14 +113,14 @@ const BugFix: FC = () => {
type="text"
value={version}
onChange={(e) => setVersion(e.target.value)}
className="dark:bg-black-1 w-full rounded-md bg-gray-200 p-3 outline-none"
className="w-full rounded-md bg-gray-200 p-3 outline-none dark:bg-black-1"
/>
</div>
</div>
<div className="mt-4">
<div
ref={messagesRef}
className="h-96 w-full overflow-y-auto rounded-md bg-slate-900 p-3 scrollbar-thin scrollbar-track-transparent scrollbar-corner-transparent"
className="h-[550px] w-full overflow-y-auto rounded-md bg-slate-900 p-3 scrollbar-thin scrollbar-track-transparent scrollbar-corner-transparent"
>
{messages.map((message) =>
message.role === 'user' ? (
Expand Down Expand Up @@ -148,7 +148,7 @@ const BugFix: FC = () => {
value={bugDescription}
onChange={(e) => setBugDescription(e.target.value)}
rows={2}
className="dark:bg-black-1 w-full resize-none rounded-md bg-gray-200 p-4 pr-16 outline-none"
className="w-full resize-none rounded-md bg-gray-200 p-4 pr-16 outline-none dark:bg-black-1"
/>
<button
disabled={!bugDescription}
Expand Down

0 comments on commit 1d04c54

Please sign in to comment.