You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "johannes-ws (via GitHub)" <gi...@apache.org> on 2025/08/21 08:34:38 UTC
[D] How to edit css dashboard? [superset]
GitHub user johannes-ws created a discussion: How to edit css dashboard?
In Superset 5.0.0, How to edit css dashboard so there is no grid when try to edit dashboard? @dosu
GitHub link: https://github.com/apache/superset/discussions/34788
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to edit css dashboard? [superset]
Posted by "emwaka14 (via GitHub)" <gi...@apache.org>.
GitHub user emwaka14 added a comment to the discussion: How to edit css dashboard?
> why i don't see the Edit CSS when i choose Edit Dashboard
This is the same issue I am facing. Anyone have an idea what to do to enable this "Edit CSS" option on the dashboard edit option?
GitHub link: https://github.com/apache/superset/discussions/34788#discussioncomment-16671088
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to edit css dashboard? [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: How to edit css dashboard?
<!-- Answer -->
In Superset 5.0.0, the grid overlay you see when editing a dashboard is rendered only in edit mode and mainly appears during component resizing. It's controlled by CSS classes like .grid-column-guide and .empty-droptarget. You can hide these overlays by injecting custom CSS into your dashboard.
To do this, open your dashboard, click the "Edit dashboard" button, then open the "Properties" panel (usually via the ⚙️ or "..." menu), and look for the "CSS" or "Custom CSS" section. Paste the following CSS to hide the grid overlays:
```css
.grid-column-guide,
.empty-droptarget {
display: none !important;
}
```
This will hide the grid lines and drop targets while editing. If you want to target only the guides that appear during resizing, you can use just `.grid-column-guide { display: none !important; }` [reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/DashboardGrid.jsx).
If your custom CSS doesn't take effect, check for syntax issues or try increasing specificity (for example, prefix with `.dashboard-grid .grid-column-guide`). For more tips on custom CSS in Superset, see the [Preset guide](https://preset.io/blog/customizing-superset-dashboards-with-css/).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=0151f606-db4f-4c43-a7a8-fd1a4a4d73ca) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/34788#discussioncomment-14175380
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to edit css dashboard? [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: How to edit css dashboard?
<!-- Answer -->
In Superset 5.0.0, the grid overlay you see when editing a dashboard is rendered only in edit mode and mainly appears during component resizing. It's controlled by CSS classes like .grid-column-guide and .empty-droptarget. You can hide these overlays by injecting custom CSS into your dashboard.
To do this, open your dashboard, click the "Edit dashboard" button, then open the "Properties" panel (usually via the ⚙️ or "..." menu), and look for the "CSS" or "Custom CSS" section. Paste the following CSS to hide the grid overlays:
```css
.grid-column-guide,
.empty-droptarget {
display: none !important;
}
```
This will hide the grid lines and drop targets while editing. If you want to target only the guides that appear during resizing, you can use just `.grid-column-guide { display: none !important; }` [reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/DashboardGrid.jsx).
If your custom CSS doesn't take effect, check for syntax issues or try increasing specificity (for example, prefix with `.dashboard-grid .grid-column-guide`). For more tips on custom CSS in Superset, see the [Preset guide](https://preset.io/blog/customizing-superset-dashboards-with-css/).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/0151f606-db4f-4c43-a7a8-fd1a4a4d73ca?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/0151f606-db4f-4c43-a7a8-fd1a4a4d73ca?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/0151f606-db4f-4c43-a7a8-fd1a4a4d73ca?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/0151f606-db4f-4c43-a7a8-fd1a4a4d73ca?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0151f606-db4f-4c43-a7a8-fd1a4a4d73ca?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/0151f606-db4f-4c43-a7a8-fd1a4a4d73ca?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0151f606-db4f-4c43-a7a8-fd1a4a4d73ca?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34788)
GitHub link: https://github.com/apache/superset/discussions/34788#discussioncomment-14175380
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to edit css dashboard? [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: How to edit css dashboard?
<!-- Answer -->
That error means the dashboard editor's frontend tried to fetch CSS templates from the backend API endpoint `/api/v1/css_template/`, but the request failed. For admin users, this usually points to one of these root causes: the `css_templates` table is missing or corrupted in your database, permissions are out of sync (even admins can hit this if roles weren't synced after an upgrade), or the backend API isn't registered or is failing due to a server/database issue. There’s no feature flag or config toggle for this—the main dependencies are the database schema and permissions.
To troubleshoot: check your Superset server logs for errors when you open the dashboard editor, verify the `css_templates` table exists in your database, and run `superset sync_roles` to repair permissions. You can also try accessing `/api/v1/css_template/` directly as an admin to see if it returns data or an error. If the problem persists, check for custom security manager overrides or plugins that might affect permissions.
[Reference: CssEditor fetch logic](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/CssEditor/index.tsx) | [Backend API details](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/css_templates/api.py)
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/47462abb-bd99-46b1-bacd-8b74b7288bac?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/47462abb-bd99-46b1-bacd-8b74b7288bac?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/47462abb-bd99-46b1-bacd-8b74b7288bac?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/47462abb-bd99-46b1-bacd-8b74b7288bac?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/47462abb-bd99-46b1-bacd-8b74b7288bac?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/47462abb-bd99-46b1-bacd-8b74b7288bac?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/47462abb-bd99-46b1-bacd-8b74b7288bac?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34788)
GitHub link: https://github.com/apache/superset/discussions/34788#discussioncomment-14175634
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to edit css dashboard? [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: How to edit css dashboard?
<!-- Answer -->
That error means the dashboard editor's frontend tried to fetch CSS templates from the backend API endpoint `/api/v1/css_template/`, but the request failed. For admin users, this usually points to one of these root causes: the `css_templates` table is missing or corrupted in your database, permissions are out of sync (even admins can hit this if roles weren't synced after an upgrade), or the backend API isn't registered or is failing due to a server/database issue. There’s no feature flag or config toggle for this—the main dependencies are the database schema and permissions.
To troubleshoot: check your Superset server logs for errors when you open the dashboard editor, verify the `css_templates` table exists in your database, and run `superset sync_roles` to repair permissions. You can also try accessing `/api/v1/css_template/` directly as an admin to see if it returns data or an error. If the problem persists, check for custom security manager overrides or plugins that might affect permissions.
[Reference: CssEditor fetch logic](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/CssEditor/index.tsx) | [Backend API details](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/css_templates/api.py)
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=47462abb-bd99-46b1-bacd-8b74b7288bac) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/34788#discussioncomment-14175634
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to edit css dashboard? [superset]
Posted by "johannes-ws (via GitHub)" <gi...@apache.org>.
GitHub user johannes-ws added a comment to the discussion: How to edit css dashboard?
Every i open edit dashboard menu, why there is error message 'An error occurred while fetching available CSS templates' however i access this as admin? @dosu
GitHub link: https://github.com/apache/superset/discussions/34788#discussioncomment-14175517
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to edit css dashboard? [superset]
Posted by "quyentran-23 (via GitHub)" <gi...@apache.org>.
GitHub user quyentran-23 added a comment to the discussion: How to edit css dashboard?
why i don't see the Edit CSS when i choose Edit Dashboard
GitHub link: https://github.com/apache/superset/discussions/34788#discussioncomment-14601476
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to edit css dashboard? [superset]
Posted by "emwaka14 (via GitHub)" <gi...@apache.org>.
GitHub user emwaka14 added a comment to the discussion: How to edit css dashboard?
> > why i don't see the Edit CSS when i choose Edit Dashboard
>
> This is the same issue I am facing. Anyone have an idea what to do to enable this "Edit CSS" option on the dashboard edit option?
Actually, just figured out that there's a provision for editing the CSS. **`Edit Properties > Styling`**
GitHub link: https://github.com/apache/superset/discussions/34788#discussioncomment-16672953
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org