mirror of
https://github.com/leoncvlt/loconotion.git
synced 2024-08-30 18:12:12 +00:00
Fix subpage links in tables for Safari
The `pointer-events: none;` style tag will make the link unclickable by some browsers (tested on iOS and MacOS Safari). This pull request adds a line of code, which will delete this tag.
This commit is contained in:
parent
44b1b6d22d
commit
92473cdc45
@ -463,6 +463,7 @@ class Parser:
|
||||
table_row_block_id = table_row["data-block-id"]
|
||||
table_row_href = "/" + table_row_block_id.replace("-", "")
|
||||
row_target_span = table_row.find("span")
|
||||
row_target_span["style"] = row_target_span["style"].replace("pointer-events: none;","")
|
||||
row_link_wrapper = soup.new_tag(
|
||||
"a", attrs={"href": table_row_href, "style": "cursor: pointer; color: inherit; text-decoration: none; fill: inherit;"}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user