Skip to content

Commit 59538aa

Browse files
dont float tesla switch
1 parent 8d506ca commit 59538aa

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

src/App.jsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,14 @@ function App() {
9999

100100
return (
101101
<div className="app">
102-
<NoTeslaToggle enabled={noTesla} onChange={handleNoTeslaToggle} />
103102
<header>
104-
<h1>Used EV Finder</h1>
105-
<p>Compare used electric vehicle prices from multiple dealers and track changes over time.</p>
103+
<div className="header-content">
104+
<div>
105+
<h1>Used EV Finder</h1>
106+
<p>Compare used electric vehicle prices from multiple dealers and track changes over time.</p>
107+
</div>
108+
<NoTeslaToggle enabled={noTesla} onChange={handleNoTeslaToggle} />
109+
</div>
106110
</header>
107111
<main className="container">
108112
{!selectedModel ? (

src/components/NoTeslaToggle.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
.no-tesla-toggle {
2-
position: fixed;
3-
top: 20px;
4-
right: 20px;
5-
z-index: 1000;
62
background: white;
73
padding: 1rem 1.5rem;
84
border-radius: 8px;

src/index.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ header {
1717
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
1818
}
1919

20+
.header-content {
21+
display: flex;
22+
justify-content: space-between;
23+
align-items: center;
24+
gap: 2rem;
25+
}
26+
2027
header h1 {
2128
font-size: 2rem;
2229
margin-bottom: 0.5rem;

0 commit comments

Comments
 (0)