Skip to content

Commit

Permalink
Fixes sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Oct 30, 2023
1 parent 5d1ec6a commit 6476e68
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion frontend/src/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function About() {
<article className="place-items-left mx-auto my-auto flex w-full max-w-6xl flex-col gap-4 rounded-3xl bg-gray-100 p-6 text-jet lg:p-6 xl:p-10">
<div className="flex items-center">
<p className="mr-2 text-3xl">About DocsGPT</p>
<img src={DocsGPT3} alt="DocsGPT" />
<img className="h14 mb-2" src={DocsGPT3} alt="DocsGPT" />
</div>
<p className="mt-4">
Find the information in your documentation through AI-powered
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function Hero({ className = '' }: { className?: string }) {
<div className={`mt-14 mb-12 flex flex-col `}>
<div className="mb-10 flex items-center justify-center ">
<p className="mr-2 text-4xl font-semibold">DocsGPT</p>
<img src={DocsGPT3} alt="DocsGPT" />
<img className="mb-2 h-14" src={DocsGPT3} alt="DocsGPT" />
</div>
<p className="mb-3 text-center leading-6 text-black-1000">
Welcome to DocsGPT, your technical documentation assistant!
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,13 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
ref={navRef}
className={`${
!navOpen && '-ml-96 md:-ml-[18rem]'
} duration-20 bg-light-gray-3000 fixed top-0 z-20 flex h-full w-72 flex-col border-r-2 transition-all`}
} duration-20 fixed top-0 z-20 flex h-full w-72 flex-col border-r-2 bg-white transition-all`}
>
<div className={'visible flex h-16 w-full justify-between md:h-12'}>
<div
className={'visible mt-2 flex h-16 w-full justify-between md:h-12'}
>
<div className="my-auto mx-4 flex cursor-pointer gap-1.5">
<img src={DocsGPT3} alt="" />
<img className="mb-2 h-10" src={DocsGPT3} alt="" />
<p className="my-auto text-2xl font-semibold">DocsGPT</p>
</div>
<button
Expand Down Expand Up @@ -240,7 +242,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
</NavLink>
{conversations && (
<div className="conversations-container max-h-[25rem] overflow-y-auto">
<p className="text-sm-eerie-black ml-6 mt-3 font-semibold">Chats</p>
<p className="ml-6 mt-3 text-sm font-semibold">Chats</p>
{conversations?.map((conversation) => (
<ConversationTile
key={conversation.id}
Expand Down Expand Up @@ -318,9 +320,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
</div>
)}
</div>
<p className="ml-6 mt-3 text-sm font-semibold text-eerie-black">
Source Docs
</p>
<p className="ml-6 mt-3 text-sm font-semibold">Source Docs</p>
</div>
<div className="flex flex-col gap-2 border-b-2 py-2">
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,5 @@ export default function Avatar({
size?: 'SMALL' | 'MEDIUM' | 'LARGE';
className: string;
}) {
const styles = {
transform: 'scale(-1, 1)',
};
return (
<div style={styles} className={className}>
{avatar}
</div>
);
return <div className={`${className} flex-shrink-0`}>{avatar}</div>;
}
14 changes: 12 additions & 2 deletions frontend/src/conversation/ConversationBubble.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { forwardRef, useState } from 'react';
import Avatar from '../Avatar';
import Avatar from '../components/Avatar';
import { FEEDBACK, MESSAGE_TYPE } from './conversationModels';
import classes from './ConversationBubble.module.css';
import Alert from './../assets/alert.svg';
Expand Down Expand Up @@ -66,7 +66,17 @@ const ConversationBubble = forwardRef<
className={`flex self-start ${className} group flex-col pr-20`}
>
<div className="flex self-start">
<img src={DocsGPT3} alt="DocsGPT" />
<Avatar
className="mt-2 h-12 w-12 text-2xl"
avatar={
<img
src={DocsGPT3}
alt="DocsGPT"
className="h-full w-full object-cover"
/>
}
/>

<div
className={`ml-2 mr-5 flex rounded-3xl bg-gray-1000 p-3.5 ${
type === 'ERROR'
Expand Down

0 comments on commit 6476e68

Please sign in to comment.