Skip to content

Commit d6ab24a

Browse files
Jim LiuJim Liu
authored andcommitted
fixed resizing issues for border color and unsplash query box
1 parent 69d522f commit d6ab24a

File tree

1 file changed

+11
-11
lines changed
  • frontend/src/components/Pages/Home

1 file changed

+11
-11
lines changed

frontend/src/components/Pages/Home/index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const Home = () => {
7777
return (
7878
<React.Fragment>
7979

80-
<marquee style={{ padding: '10px', borderRadius: '10px', width: '80%', margin: 'auto', textAlign: 'center' }}>
80+
<marquee style={{ display: 'block', padding: '10px', borderRadius: '10px', width: '80%', margin: 'auto', textAlign: 'center' }}>
8181
<Typography variant='h6' align='center' component='h4' style={{ margin: '20px', padding: '25px', color: '#6e45e2', fontFamily: 'Arial, sans-serif' }}>
8282
🚀 After migrating to Vercel, our application now has separate UI and server deployments for PRODUCTION, while still maintaining server-side rendering locally for DEVELOPMENT. 🚀
8383
</Typography>
@@ -96,7 +96,7 @@ const Home = () => {
9696
id="theme"
9797
options={themes}
9898
value={theme}
99-
style={{ width: 300, margin: '0 auto' }}
99+
style={{margin: '0 auto' }}
100100
onChange={(_event, newValue) => {
101101
if (newValue != null)
102102
setTheme(newValue)
@@ -113,7 +113,7 @@ const Home = () => {
113113
if (newValue != null)
114114
setLayout(newValue)
115115
}}
116-
style={{ width: 300, margin: '0 auto' }}
116+
style={{margin: '0 auto' }}
117117
renderInput={(params) => <TextField {...params} label="Layout" variant="outlined" />}
118118
/>
119119
</Grid>
@@ -126,7 +126,7 @@ const Home = () => {
126126
if (newValue != null)
127127
setAnimation(newValue)
128128
}}
129-
style={{ width: 300, margin: '0 auto' }}
129+
style={{margin: '0 auto' }}
130130
renderInput={(params) => <TextField {...params} label="Animation" variant="outlined" />}
131131
/>
132132

@@ -137,7 +137,7 @@ const Home = () => {
137137
id="font"
138138
options={fonts}
139139
value={font}
140-
style={{ width: 300, margin: '0 auto' }}
140+
style={{margin: '0 auto' }}
141141
onChange={(_event, newValue) => {
142142
if (newValue != null)
143143
setFont(newValue)
@@ -151,7 +151,7 @@ const Home = () => {
151151
id="font-color"
152152
options={colorValues}
153153
value={fontColor}
154-
style={{ width: 300, margin: '0 auto' }}
154+
style={{margin: '0 auto' }}
155155
onChange={(_event, newValue) => {
156156
setFontColor(newValue)
157157
}}
@@ -163,7 +163,7 @@ const Home = () => {
163163
id="bg-color"
164164
options={colorValues}
165165
value={bgColor}
166-
style={{ width: 300, margin: '0 auto' }}
166+
style={{margin: '0 auto' }}
167167
onChange={(_event, newValue) => {
168168
setBgColor(newValue)
169169
}}
@@ -182,7 +182,7 @@ const Home = () => {
182182
id="border-color"
183183
options={colorValues}
184184
value={borderColor}
185-
style={{ width: 300 }}
185+
style={{margin: '0 auto'}}
186186
onChange={(_event, newValue) => {
187187
setBorderColor(newValue)
188188
}}
@@ -196,7 +196,7 @@ const Home = () => {
196196
id="quote-type"
197197
options={quoteTypes}
198198
value={quoteType}
199-
style={{ width: 300, margin: '0 auto' }}
199+
style={{margin: '0 auto' }}
200200
onChange={(_event, newValue) => {
201201
if (newValue != null)
202202
setQuoteType(newValue)
@@ -210,7 +210,7 @@ const Home = () => {
210210
id="bg-source"
211211
options={['unsplash']}
212212
value={bgSource}
213-
style={{ width: 300, margin: '0 auto' }}
213+
style={{margin: '0 auto' }}
214214
onChange={(_event, newValue) => {
215215
setBgSource(newValue);
216216
}}
@@ -223,7 +223,7 @@ const Home = () => {
223223
label="Unsplash query"
224224
variant="outlined"
225225
value={unsplashQuery}
226-
style={{ width: 300, margin: '0 auto' }}
226+
style={{ width: '100%' }}
227227
onChange={(event) => setUnsplashQuery(event.target.value)}
228228
onKeyDown={(e) => e.key === "Enter" && setQueryKeyEnter(true)}
229229
disabled={bgSource !== 'unsplash'}

0 commit comments

Comments
 (0)