Skip to content

Commit

Permalink
Align main body vertically on smaller window sizes EXXETA#205 solved
Browse files Browse the repository at this point in the history
  • Loading branch information
sanwalsulehri committed Jan 29, 2025
1 parent 89b4301 commit 35bd295
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/mainWindow/MainBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { OutputTabs } from '@/components/mainWindow/bodyTabs/OutputTabs';

export function MainBody() {
return (
<div className={'flex-1 flex flex-column gap-6'}>
<div className={'xl:flex-1 overflow-x-hidden xl:flex xl:flex-column gap-6'}>
<InputTabs className="rounded-sm m-0 flex-1" />
<OutputTabs className="rounded-sm m-0 flex-1" />
<OutputTabs className="rounded-sm xl:m-0 mt-6 flex-1" />
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function InputTabs(props: InputTabsProps) {
</TabsList>

<TabsContent value="body">
<div className={'h-full relative'}>
<div className={'xl:h-full min-h-[50vh] relative'}>
<div className={'absolute top-[16px] right-[16px] left-[16px] z-10'}>
<div className={'flex justify-end'}>
{renderSelectLanguage()}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/mainWindow/bodyTabs/OutputTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function OutputTabs(props: OutputTabsProps) {
</TabsList>

<TabsContent value="body">
<div className={'h-full'}>
<div className={'xl:h-full min-h-[50vh]'}>
<Editor
language={mimeType}
theme="vs-dark" /* TODO: apply theme from settings */
Expand Down
5 changes: 5 additions & 0 deletions src/renderer/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,8 @@
font-feature-settings: "rlig" 1, "calt" 1;
}
}


::-webkit-scrollbar{
display: none;
}

0 comments on commit 35bd295

Please sign in to comment.