Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the panels shown being customised as per component? #171

Closed
riccardoerra opened this issue Oct 31, 2016 · 6 comments

Comments

Projects
None yet
4 participants
@riccardoerra
Copy link

commented Oct 31, 2016

I customised the theme in fractal.js because I only need to show few panels.
Is it possible to show only certain panels for some components and other panels for other components?
Asking this because I'm trying to find a workaround to something I don't see Fractal is offering at the moment.
I would like to show in the sidebar the compiled main.css file used for styling all the components. Don't think this is possible at the moment so I thought a solution could be to have a component with no HTML and just main.css and a config file. Because of this "weird" component I only need to show the Assets panel.
In general would nice to have the option to show assets in the sidebar.

@allmarkedup

This comment has been minimized.

Copy link
Member

commented Nov 3, 2016

@riccardoerra you can't currently customise the panels on a per-component basis I'm afraid :-(

Better support for displaying/downloading assets is very high on my list of things to add in though and some sort of sidebar asset listing is definitely on my radar.

@riccardoerra

This comment has been minimized.

Copy link
Author

commented Nov 3, 2016

@allmarkedup thanks anyway.
Found a workaround in the meantime: customising the Nunjucks templates with if/else conditions using the config file of the components.
Something like: if the component has the tag x then render only the panel x. Seems to work fine so far.
Sidebar asset listing would be great!

@lawlesscreation

This comment has been minimized.

Copy link

commented Jun 30, 2017

@riccardoerra could you expand a little on how you did this? I'd also like to be able to disable certain panels on a per-component basis.

Thanks!

@riccardoerra

This comment has been minimized.

Copy link
Author

commented Jun 30, 2017

@lawlesscreation That was months ago. As far as I remember I followed what's in the guide, http://fractal.build/guide/customisation/web-themes , and ended up adding a couple of if/else statements in the some of Mandelbrot Nunjucks templates. Was not that difficult. I suggest to give it a go and see how much you manage to edit.

@allmarkedup allmarkedup added the v1.x label Aug 7, 2017

@stale

This comment has been minimized.

Copy link

commented Jul 12, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 12, 2018

@stale stale bot closed this Jul 19, 2018

@f-g-s

This comment has been minimized.

Copy link

commented Mar 21, 2019

I had the same problem. Just use the automatic ID of the page and the class of the panel and override the panel with CSS in a custom theme. Not the best way, but it works in seconds.

# browser-2f89ecd869b4fcc17500c5648f9c5015 .Browser-tab - html, # browser-2f89ecd869b4fcc17500c5648f9c5015 .Browser-tab - resources {
     display: none;
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.