Skip to content

Commit d4f1571

Browse files
committed
demo --fix responsive, add style
1 parent 7d01d20 commit d4f1571

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

client/src/components/Navbar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const Navbar = () => {
1515
justifyContent: 'flex-start',
1616
paddingLeft: '1rem',
1717
background: 'white',
18-
boxShadow: '0 0 8px 3px rgba(0,0,0,0.2)'
18+
boxShadow: '0 0 8px 3px rgba(0,0,0,0.2)',
19+
zIndex: 999
1920
}}
2021
className="navbar"
2122
>

client/src/demo/Demo.tsx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ const Demo = () => {
152152
display: 'flex',
153153
alignItems: 'center',
154154
justifyContent: 'center',
155-
fontSize: '3rem'
155+
fontSize: '3rem',
156+
whiteSpace: 'nowrap'
156157
}}
157158
>
158159
Your Todo List
@@ -176,7 +177,13 @@ const Demo = () => {
176177
/>
177178
<Button
178179
type="submit"
179-
style={{ background: 'black', color: 'white', padding: '1rem' }}
180+
style={{
181+
background: '#FF0083',
182+
color: 'white',
183+
padding: '1rem',
184+
fontSize: '1rem',
185+
fontWeight: 500
186+
}}
180187
>
181188
ADD
182189
</Button>
@@ -195,7 +202,10 @@ const Demo = () => {
195202
style={{
196203
minWidth: column.minWidth,
197204
fontSize: '1.5rem',
198-
fontWeight: 600
205+
fontWeight: 600,
206+
height: '48px',
207+
background: 'black',
208+
color: 'white'
199209
}}
200210
>
201211
{column.label}
@@ -209,7 +219,7 @@ const Demo = () => {
209219
<TableRow
210220
hover
211221
tabIndex={-1}
212-
key={`${todo.id}_${btoa(todo.todo)}`}
222+
key={`${todo.id}_${todo.todo}`}
213223
>
214224
<TableCell
215225
style={{
@@ -242,9 +252,9 @@ const Demo = () => {
242252
</div>
243253
</TableCell>
244254
<TableCell>
245-
{new Date(todo.created_at).toLocaleString()}
255+
{new Date(todo.created_at).toLocaleString('eu')}
246256
</TableCell>
247-
<TableCell>
257+
<TableCell style={{ textAlign: 'center' }}>
248258
<Checkbox
249259
checked={todo.completed}
250260
onClick={(e) => onCompleteTodo(e, todo.id)}

0 commit comments

Comments
 (0)