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

Add custom css to override dashboard setting? #678

Closed
jeromeryu opened this issue Apr 4, 2024 · 2 comments
Closed

Add custom css to override dashboard setting? #678

jeromeryu opened this issue Apr 4, 2024 · 2 comments

Comments

@jeromeryu
Copy link

Hi team!
Is there any way to add custom css to override existing css codes?
I want to remove title space from my scenesapp so that it has more room.
currently I managed to do something like this

export const HomePage = () => {
  const scene = useMemo(() => getScene(), []);
  const css = `
  .root > div > div >.scrollbar-view > div > div:first-child {
    display: none;
  }
  `;

  return (
    <div className="root">
      <style>{css}</style>
      <scene.Component model={scene} />;
    </div>
  );
};

but it looks weire and messy..
Is there any ways that I can achieve this?

Thanks

@torkelo
Copy link
Member

torkelo commented Apr 4, 2024

not sure I understand, what title space? do you mean the page title?

you can change how that is rendered with renderTitle (property on SceneAppPage)

@torkelo torkelo closed this as completed Apr 4, 2024
@jeromeryu
Copy link
Author

I want to delete all the random spaces in page-header html component, I've tried renderTitle but it still leaves some margin.

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

No branches or pull requests

2 participants