Commit graph

30 commits

Author SHA1 Message Date
GnoxNahte
0aa7b19d35 Fix #14. Don't embed web images 2024-09-19 23:24:42 +08:00
GnoxNahte
bac75210b3 Fix #10, Fix #11. Changed how the plugin embeds it, where the embed is placed.
Also changed and cleaned up some css for the alt img
2024-09-19 23:23:40 +08:00
GnoxNahte
3ec8922f2e Fix #9 where embeds aren't collapsed when in a collapsed bullet list. 2024-09-16 09:13:24 +08:00
GnoxNahte
46378a81b2 Fix #8 and other small changes to fallback embed
- If it's an error embed, just return the element without adding the placeholder.
- Add loading spinning animation.
- Fix opacity animation not working for fallback embed
2024-09-16 08:44:18 +08:00
GnoxNahte
10413275d1 Remove duplicated css, Add padding for fallback embed link 2024-09-08 09:41:16 +08:00
GnoxNahte
ccc3e720c4 Update to version 1.2.0
This update fixes: https://github.com/GnoxNahte/obsidian-auto-embed/issues/7

This commit also fixes some minor bugs:
- enable twitter by default.
- limits embed width, mostly for small screens.
2024-09-07 15:35:09 +08:00
GnoxNahte
51f7eddf8f Fix extra line below embed not showing 2024-09-07 13:51:20 +08:00
GnoxNahte
c3cfd70668 Redo setting classes for embeds container and embeds
Clean up classes made from 87225856d6. It had duplicate classes on the container and embed.
This commit cleans up that. Now only the container has the class that identifies the type of embed

Also fix various css bugs caused by the container being the embed's parent
2024-09-07 13:51:04 +08:00
GnoxNahte
87225856d6 Add placeholder when loading and a click to load option 2024-09-05 23:27:14 +08:00
GnoxNahte
04a21a21b3 Add options to disable selected websites and other minor bugs
Minor bugs & additions:
- When the user is on the line to edit the embed and presses down, it'll go straight to the next line instead of the side of the embed. (Changed display to inline). However, if the user presses right when they are on the last character of the line, it'll still go to the side of the embed (still not fixed)
- Add Imgur album support
2024-08-25 21:12:48 +08:00
GnoxNahte
4e27bb0e05 Fix #6
Also add a default height for tiktok to prevent cumulative layout shift
2024-07-18 20:32:48 +08:00
GnoxNahte
b55a7c4a8e Add SoundCloud songs embeds #3 2024-07-13 19:49:36 +08:00
GnoxNahte
57224373f6 Fix reddit not resizing properly
- Remove auto size setting since it's not needed.
- Modify README to remove the reddit resizing warning and also other minor changes
- Added comments to separate the different websites in styles.css.
- Slightly clean up TikTok's embed code, following cleanup in Reddit's code
2024-07-13 19:21:38 +08:00
GnoxNahte
7e8c663fae Fix resizing bug for fallback embed 2024-06-28 20:08:45 +08:00
GnoxNahte
dbb55022e0 Add support for embedding Google Docs 2024-06-08 17:22:31 +08:00
GnoxNahte
ad30a9b302 Don't override embeds when embedding image urls (urls ending with an image extension like .png or .jpg) 2024-06-08 15:21:40 +08:00
GnoxNahte
58363e7aa3 Code Cleanup
Remove unused comments & code
2024-03-25 15:40:03 +08:00
GnoxNahte
a604ee60e8 Update styles.css
- Remove unused styles,
- Set all embeds to display: inline-block. This removes the white space between embeds.
2024-03-25 15:25:42 +08:00
GnoxNahte
d0ff3c66d8 Cleaning up code
- Add common iframe attributes in embedBase, avoiding duplicate code
- Partially fix reddit resizing bug by lazy loading it. Still occurs when there are multiple reddit embeds in the user's view
- support more imgur urls
- remove min-height from css to allow user-set heights
2024-03-21 15:23:41 +08:00
GnoxNahte
428ee62aed Add support for getting options through alt text (Need code cleanup)
Users can put options in like
[w:75%, h:200px](https://example.com)
Also allows ignoring embeds (need some work to make it totally ignore though)
2024-03-20 23:49:34 +08:00
GnoxNahte
5e2167b131 add ignoring domains like youtube and twitter, so as to not conflict with Obsidian's embeds 2024-03-20 14:51:47 +08:00
GnoxNahte
80bc8bab5b Clean up some live preview code 2024-03-18 22:12:06 +08:00
GnoxNahte
d636913110 Added base for live preview support. Need cleanup and testing 2024-03-17 21:00:38 +08:00
GnoxNahte
3b5494f4c8 Add support for Spotify embeds 2024-03-08 12:49:59 +08:00
GnoxNahte
ca27fbf44d Add back reddit auto resize but with conditions
Only resize if there's only 1 reddit embed. Or the user can opt to resize automatically in the settings.
2024-03-06 15:35:40 +08:00
GnoxNahte
40ae8a410a Add reddit embeds. Height resizing not working. 2024-03-06 12:19:49 +08:00
GnoxNahte
5f29c6df9d Add Steam embeds 2024-03-06 10:39:30 +08:00
GnoxNahte
4f521faa71 Add support for more youtube urls, youtube shorts and capturing timestamp. 2024-03-06 09:58:29 +08:00
GnoxNahte
04513c920e Added support for twitter and simplify codepen's code. 2024-03-05 23:12:54 +08:00
GnoxNahte
529c6c2b77 Initial commit 2024-03-05 08:42:56 +08:00