Skip to content

Commit

Permalink
Avoid scrollbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarephilosopher committed Aug 17, 2024
1 parent 29a4a44 commit 21234b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/samples/sample5.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function TodoList() {
<div>{input}</div>
<div class='actions'>
<Counter list={list} />
<ActionButton onclick={() => list.clearDone()}>Clear done</ActionButton>
<ActionButton onclick={() => list.invertAll()}><i>Invert</i> all</ActionButton>
<Button onclick={() => list.clearDone()}>Clear done</Button>
<Button onclick={() => list.invertAll()}><i>Invert</i> all</Button>
</div>
{list.ul}
</div>;
Expand Down Expand Up @@ -110,7 +110,7 @@ function Counter({ list }: { list: List }) {
return span;
}

function ActionButton(attrs: { onclick: () => void }, children: any) {
function Button(attrs: { onclick: () => void }, children: any) {
return <a
href='#'
class='action-button'
Expand Down

0 comments on commit 21234b9

Please sign in to comment.