Skip to content
Discussion options

You must be logged in to vote

What’s happening is that Trilium’s promoted labels widget injects its own internal <style> tag directly into the DOM, which sets properties like display: table and max-height: 400px on .promoted-attributes-container. This internal CSS is loaded after your theme and #appCss, so it overrides your changes—even with !important—unless your selector is more specific or you use a trick to increase its priority. There’s no Shadow DOM, but this embedded style tag acts like a high-priority CSS layer (see code reference).

To override it, you need to use a more specific selector and !important. Try this in your #appCss note:

.promoted-attributes-widget .promoted-attributes-container {
  display: grid 

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@SESummers3
Comment options

@dosubot
Comment options

Answer selected by SESummers3
Comment options

You must be logged in to vote
2 replies
@SESummers3
Comment options

@eliandoran
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants