Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed layout issue #61

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions apps/web/src/components/ThreadSection/ThreadSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,17 @@ export const ThreadSection = (props: ThreadSectionProps) => {
}

return (
<div className="flex flex-col h-full p-4">
<div className="overflow-y-scroll h-full py-4 scrollbar-hide">
<div className="flex flex-col h-full p-4 ">
<div className="overflow-y-scroll h-full py-4 scrollbar-hide box-border ">
{currentThread.data?.node && <Thread thread={currentThread.data.node}/>}
<div className="mt-[40px] space-y-[40px]">
<div className="mt-[40px] space-y-[40px] mb-[120px]">
{comments.data && comments.data.edges.map((item) => (
<Comment key={item.node.id} comment={item.node}/>
))}
</div>
</div>
<div className="flex flex-row py-2 px-4 bottom-8 rounded-xl border h-auto bg-white mt-4">
<div className="absolute bottom-0 pb-[20px] h-auto bg-white mt-4 w-[70%]">
<div className="flex flex-row py-2 px-4 rounded-xl border h-auto items-center">
<textarea
id="chat"
ref={commentBoxRef}
Expand All @@ -100,6 +101,7 @@ export const ThreadSection = (props: ThreadSectionProps) => {
<SendIcon/>
</button>
</div>
</div>
</div>
);
}
4 changes: 2 additions & 2 deletions apps/web/src/pages/community.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ const CommunityPage = () => {
}

return (
<div className="flex h-full max-h-full flex-col overflow-y-hidden">
<div className="flex h-full max-h-full flex-col relative overflow-hidden">
<JoinCommunity />
<div className="flex h-full flex-row">
<div className="flex max-h-full flex-row grow ">
<div className="mx-4 flex flex-col h-full w-[30%]">
{communityName && (
<p className="my-4 text-4xl font-medium">{communityName}</p>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/feed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const FeedPage = () => {
}

return (
<div className="flex flex-row max-h-screen h-full overflow-y-hidden">
<div className="flex flex-row max-h-screen h-full overflow-y-hidden relative">
<div className="w-[30%] mx-4 flex flex-col">
<p className="text-4xl font-medium my-4">your feed</p>
<Search onQuery={() => {}}/>
Expand Down