Also render footnotes in tooltip shortcode #60

Merged
iniznet merged 21 commits from feat/footnote into main 2024-10-16 01:53:41 +08:00
iniznet commented 2024-10-14 00:07:50 +08:00 (Migrated from github.com)

Still in a draft state before my ssd broke, I will get it done tomorrow, some of them still need to be properly placed in their respective locations. So far, what do you think?

I'm also unsure where the fictioneer_after_tooltip_shortcode and the_content hooks should belong.

  • Proper code placement
  • Proper hook naming
  • Checkbox to toggle the footnote in settings
  • Docs

Preview:
image

Still in a draft state before my ssd broke, I will get it done tomorrow, some of them still need to be properly placed in their respective locations. So far, what do you think? I'm also unsure where the `fictioneer_after_tooltip_shortcode` and `the_content` hooks should belong. - [x] Proper code placement - [x] Proper hook naming - [x] Checkbox to toggle the footnote in settings - [x] Docs Preview: ![image](https://github.com/user-attachments/assets/7e001c45-8203-43aa-9b45-3163065d7cdc)
Tetrakern commented 2024-10-14 05:52:00 +08:00 (Migrated from github.com)

I have to take a deeper look later, but I immediately encountered one style problem. You surround the link with a block inside the paragraph. Should probably just need a span.

image
I have to take a deeper look later, but I immediately encountered one style problem. You surround the link with a block inside the paragraph. Should probably just need a span. <img width="762" alt="image" src="https://github.com/user-attachments/assets/8cab7f42-b0ea-4a16-bbee-a2b8f82a3f06">
iniznet commented 2024-10-15 00:18:04 +08:00 (Migrated from github.com)

I have to take a deeper look later, but I immediately encountered one style problem. You surround the link with a block inside the paragraph. Should probably just need a span.

You’re right, I totally forgot about that.

> I have to take a deeper look later, but I immediately encountered one style problem. You surround the link with a block inside the paragraph. Should probably just need a span. You’re right, I totally forgot about that.
iniznet commented 2024-10-15 00:38:15 +08:00 (Migrated from github.com)

Ready for a proper review! I believe this is good enough for the initial/basic footnote feature. I’ll leave the design style and appropriate user messages to you. Let me know if something needs to change.

Ready for a proper review! I believe this is good enough for the initial/basic footnote feature. I’ll leave the design style and appropriate user messages to you. Let me know if something needs to change.
Tetrakern (Migrated from github.com) reviewed 2024-10-15 00:54:40 +08:00
Tetrakern (Migrated from github.com) commented 2024-10-15 00:54:40 +08:00

I believe you somehow ended up in the wrong line while editing.

I believe you somehow ended up in the wrong line while editing.
iniznet (Migrated from github.com) reviewed 2024-10-15 00:55:42 +08:00
iniznet (Migrated from github.com) commented 2024-10-15 00:55:42 +08:00

gonna fix it asap!

gonna fix it asap!
Tetrakern commented 2024-10-15 01:09:36 +08:00 (Migrated from github.com)

I'm currently unsure what's the best style approach and whether this should be in the content (and therefore subject to the custom formatting) or its own box.

I'm currently unsure what's the best style approach and whether this should be in the content (and therefore subject to the custom formatting) or its own box.
iniznet commented 2024-10-15 01:29:53 +08:00 (Migrated from github.com)

I took a look at a few tl sites, most of them have simpler approach by either use the current style or add a horizontal line to separate the content from the footnote section.

I took a look at a few tl sites, most of them have simpler approach by either use the current style or add a horizontal line to separate the content from the footnote section.
Tetrakern commented 2024-10-15 02:03:28 +08:00 (Migrated from github.com)

I'm gong to ponder that for a bit. I'm currently stuck trying to figure out why scroll-margin-top does not work on the super link. It's a minor thing but I believe it would be better the footnote to not be hidden behind the nav bar if you scroll up again. I just don't want to add JS for that.

I'm gong to ponder that for a bit. I'm currently stuck trying to figure out why `scroll-margin-top` does not work on the super link. It's a minor thing but I believe it would be better the footnote to not be hidden behind the nav bar if you scroll up again. I just don't want to add JS for that.
iniznet commented 2024-10-15 02:29:39 +08:00 (Migrated from github.com)

Are you still have the issue? I tried to add .scroll-margin-top as tooltip anchor class, it's seems working fine.

https://github.com/user-attachments/assets/884ac58d-aad5-4d50-b883-512657f7b3fd

Are you still have the issue? I tried to add `.scroll-margin-top` as tooltip anchor class, it's seems working fine. https://github.com/user-attachments/assets/884ac58d-aad5-4d50-b883-512657f7b3fd
Tetrakern commented 2024-10-15 03:01:25 +08:00 (Migrated from github.com)

Somehow, the very same thing does not work for me. Typical.

Somehow, the very same thing does not work for me. Typical.
Tetrakern commented 2024-10-15 19:42:23 +08:00 (Migrated from github.com)

@iniznet What do you think about the style and changes? I believe it can be merged now.

@iniznet What do you think about the style and changes? I believe it can be merged now.
iniznet commented 2024-10-15 19:58:27 +08:00 (Migrated from github.com)

Looks great! I think the only thing left is to explain the shortcode somewhere, like in DOCUMENTATION.md.

Looks great! I think the only thing left is to explain the shortcode somewhere, like in `DOCUMENTATION.md`.
Tetrakern (Migrated from github.com) approved these changes 2024-10-16 01:53:23 +08:00
Sign in to join this conversation.
No description provided.