Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vladisssi committed Aug 26, 2024
1 parent 15b205b commit d301f13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const Header: React.FC = () => {
return (
<header className="todoapp__header">
{/* this button should have `active` class only if all todos are completed */}
{todos.length && <ToggleButtonHeader />}
{todos.length > 0 && <ToggleButtonHeader />}

{/* Add a todo on form submit */}
<form onSubmit={addTitle}>
Expand Down
4 changes: 4 additions & 0 deletions src/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@charset "UTF-8";

/* stylelint-disable selector-no-vendor-prefix */

iframe {
display: none;
}
Expand Down Expand Up @@ -77,6 +79,7 @@ body {
}

.todoapp__new-todo {
box-sizing: border-box;
width: 100%;
padding: 16px 16px 16px 60px;
font-size: 24px;
Expand Down Expand Up @@ -219,6 +222,7 @@ body {
}

.todo__title-field {
box-sizing: border-box;
width: 100%;
padding: 11px 14px;
font-size: inherit;
Expand Down

0 comments on commit d301f13

Please sign in to comment.