Skip to content

Commit f2c1e72

Browse files
committed
style: adjust width and padding
1 parent 519ff3b commit f2c1e72

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

src/App.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,9 @@ function App() {
66
useDynamicFavicon();
77

88
return (
9-
<>
10-
<Layout>
11-
<p className="text-gray-600 dark:text-gray-200 text-center mb-8">
12-
Compare files and visualize differences in real-time
13-
</p>
14-
15-
<DiffEditor />
16-
</Layout>
17-
</>
9+
<Layout>
10+
<DiffEditor />
11+
</Layout>
1812
);
1913
}
2014

src/components/layout/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const Footer = ({ className = "" }: FooterProps) => {
77
<footer
88
className={`bg-gray-50 dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700 ${className}`}
99
>
10-
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
10+
<div className="mx-auto px-4 sm:px-6 lg:px-8 py-4">
1111
<div className="flex flex-col md:flex-row justify-between items-center">
1212
<p className="text-gray-500 dark:text-gray-400 text-sm text-center">
1313
Diff Viewer - A simple real-time diff viewer built with monaco

src/components/layout/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface HeaderProps {
77
export const Header = ({ className = '' }: HeaderProps) => {
88
return (
99
<header className={`bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700 shadow-sm ${className}`}>
10-
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
10+
<div className="mx-auto px-4 sm:px-6 lg:px-8">
1111
<div className="flex justify-between items-center h-16">
1212
{/* Logo */}
1313
<div className="flex items-center">

src/components/layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const Layout = ({ children, className = '' }: LayoutProps) => {
1313
<Header />
1414

1515
{/* Main Content Area */}
16-
<main className="flex-1 max-w-7xl mx-auto flex flex-col px-4 sm:px-6 lg:px-8 py-8 w-full">
16+
<main className="flex-1 mx-auto flex flex-col px-4 sm:px-6 lg:px-8 py-8 w-full">
1717
{children}
1818
</main>
1919

0 commit comments

Comments
 (0)