Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Conflicts - code-block-copy AND Banners #17

Open
Jopp-gh opened this issue Sep 14, 2021 · 2 comments
Open

Conflicts - code-block-copy AND Banners #17

Jopp-gh opened this issue Sep 14, 2021 · 2 comments

Comments

@Jopp-gh
Copy link

Jopp-gh commented Sep 14, 2021

To deal with images, i use Image Flags.css
https://forum.obsidian.md/t/how-to-achieve-css-code-snippets/8474/93

unfortunately, the option "banners" in Image Flags.css is unsuitable for real banners, so I need to use yet another plugin called banners:
https://github.com/noatpad/obsidian-banners

your plugin alters codeblocks, and this banners plugin as well.

@noatpad
Copy link

noatpad commented Sep 22, 2021

Maintainer of the Banners plugin here. And yeah, basically the problem is that the styling of this plugin overwrites the styling for my plugin (since I attach the banner to the frontmatter and I have no other way of doing it). The best way of fixing that up is to simply ignore applying styles to the YAML frontmatter code block, though that has that small caveat of not being able to copy the frontmatter with a button.

I could make a small PR for that, but for the time being, a workaround I found is to make and use a small CSS snippet with these contents:

.obsidian-banner-wrapper.has-copy-button {
	position: initial;
}

It'll put the banner back into place, with the small detail that the Copy button is at the top right corner of the banner

@tiiins
Copy link

tiiins commented Oct 13, 2021

Had the same problem. Thank you very much @noatpad !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants