Skip to content

Commit

Permalink
Fix items clicks not working
Browse files Browse the repository at this point in the history
  • Loading branch information
thevahidal committed Dec 29, 2023
1 parent 470aa21 commit 661653b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dist/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
margin-bottom: var(--block-spacing-vertical);
}

button > hgroup {
[role="button"] > hgroup {
margin-bottom: 0;
}

[role="button"] {
margin-bottom: var(--spacing);
width: 100%;
}
8 changes: 7 additions & 1 deletion script.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
),
(
h("div", klass="item")(
h("button", klass="outline", href=item.get("url"), target="_blank")(
h(
"a",
role="button",
klass="outline",
href=item.get("url"),
target="_blank",
)(
h("hgroup")(
h("h4")(item.get("title")),
h("h5")(item.get("description"))
Expand Down

0 comments on commit 661653b

Please sign in to comment.