Skip to content

Commit

Permalink
🤖 Adjust margins
Browse files Browse the repository at this point in the history
  • Loading branch information
asim-shrestha committed Apr 8, 2023
1 parent 8c2d922 commit 2fa42a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/ChatWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const ChatWindow = ({ messages, children, className }: ChatWindowProps) => {
>
<MacWindowHeader />
<div
className="mb-3 mr-3 h-[10em] overflow-y-auto overflow-x-hidden sm-h:h-[15em] md-h:h-[20em] lg-h:h-[30em] "
className="mb-2 mr-2 h-[11em] overflow-y-auto overflow-x-hidden sm-h:h-[16em] md-h:h-[21em] lg-h:h-[30em] "
ref={scrollRef}
onScroll={handleScroll}
>
Expand Down Expand Up @@ -86,7 +86,7 @@ const MacWindowHeader = () => {

const ChatMessage = ({ message }: { message: Message }) => {
return (
<div className="mx-4 my-1 rounded-lg border-[2px] border-white/10 bg-white/20 p-3 font-mono text-sm hover:border-[#1E88E5]/40 sm:text-base">
<div className="mx-2 my-1 rounded-lg border-[2px] border-white/10 bg-white/20 p-2 font-mono text-sm hover:border-[#1E88E5]/40 sm:mx-4 sm:p-3 sm:text-base">
<div className="mr-2 inline-block h-[0.9em]">
{getMessageIcon(message)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Home: NextPage = () => {
<Drawer handleHelp={() => setShowModal(true)} />
<div
id="content"
className="z-10 flex h-screen w-full items-center justify-center p-2 px-4"
className="z-10 flex h-screen w-full items-center justify-center p-2 px-2 sm:px-4 md:px-10"
>
<div
id="layout"
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
"xs": "300px",

"sm-h": { "raw": "(min-height: 700px)" },
"md-h": { "raw": "(min-height: 900px)" },
"md-h": { "raw": "(min-height: 800px)" },
"lg-h": { "raw": "(min-height: 1000px)" },

...defaultTheme.screens
Expand Down

0 comments on commit 2fa42a4

Please sign in to comment.