(feature request) Full Page PDF as Default #1753

Closed
opened 2025-10-01 16:08:02 -05:00 by giteasync · 4 comments
Owner

Originally created by @Dwindle2234 on GitHub.

Describe feature

I have hundreds of notes that are just PDF files. I would like to be able to set a global option such that when I open one of these notes it renders them in the 'full' screen i.e. not with the file attributes expanded. There's nothing useful in those properties that I need so would prefer the screen real-estate for the PDF. I know I can click file to close them individually but this doesn't persist

image

Additional Information

No response

Originally created by @Dwindle2234 on GitHub. ### Describe feature I have hundreds of notes that are just PDF files. I would like to be able to set a global option such that when I open one of these notes it renders them in the 'full' screen i.e. not with the file attributes expanded. There's nothing useful in those properties that I need so would prefer the screen real-estate for the PDF. I know I can click file to close them individually but this doesn't persist ![image](https://github.com/zadam/trilium/assets/120342689/1e98d650-7b27-481e-b067-27f440e73bbb) ### Additional Information _No response_
Author
Owner

@Dwindle2234 commented on GitHub:

Thank you for responding! However I appear to be struggling

I have my CSS note:
image

and I have my attribute:
image

and I've restarted the front-end....but no luck

What am I missing?

Thanks

@Dwindle2234 commented on GitHub: Thank you for responding! However I appear to be struggling I have my CSS note: ![image](https://github.com/zadam/trilium/assets/120342689/6392346a-5a58-4ce2-9bc6-aec4927f8714) and I have my attribute: ![image](https://github.com/zadam/trilium/assets/120342689/436a1e4e-1616-4bb6-a5c6-b2bf674b60f7) and I've restarted the front-end....but no luck What am I missing? Thanks
Author
Owner

@soulsands commented on GitHub:

Hi, It can be implemented through attributes.

  1. create a note with css type.
  2. paste the code into the note.
.hide-file-properties .file-properties-widget{
   display:none!important;
}
.show-file-properties .file-properties-widget{
   display:block!important;
}
  1. create the attribute #cssClass(inheritable)=hide-file-properties on root note or the parent note of your pdf files.
  2. reload frontend.
  3. you can add the attribute #cssClass=show-file-properties on the specifc note expected to show the file properties.
@soulsands commented on GitHub: Hi, It can be implemented through [attributes](https://github.com/zadam/trilium/wiki/Attributes). 1. create a note with css type. 2. paste the code into the note. ```css .hide-file-properties .file-properties-widget{ display:none!important; } .show-file-properties .file-properties-widget{ display:block!important; } ``` 3. create the attribute `#cssClass(inheritable)=hide-file-properties` on root note or the parent note of your pdf files. 4. reload frontend. 5. you can add the attribute `#cssClass=show-file-properties` on the specifc note expected to show the file properties.
Author
Owner

@soulsands commented on GitHub:

Sorry I missed a thing, the css note need the attribute #appCss to work. Reloading is required.
By the way, if you set an attribute as inheritable , it will be inherited by the child notes.

@soulsands commented on GitHub: Sorry I missed a thing, the css note need the attribute `#appCss ` to work. Reloading is required. By the way, if you set an attribute as `inheritable` , it will be inherited by the child notes.
Author
Owner

@Dwindle2234 commented on GitHub:

Fabulous. Much appreciated @soulsands

@Dwindle2234 commented on GitHub: Fabulous. Much appreciated @soulsands
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TriliumNext/Trilium#1753
No description provided.