HangfireIO / HangfireIO/Hangfire
How to use AddStylesheet method?
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
Hello! Thank you for making Hangfire!
I'm trying to fix [css issue](https://github.com/bamotav/Hangfire.RecurringJobAdmin/issues/100) of dashboard extension by providing my own css file as following:
```C#
DashboardRoutes.AddStylesheet(typeof(WebStartup).Assembly, "cssfix.css");
```
Unfortunately, I have broken dashboard as the result. May be I'm looking at the wrong direction, but, any way, what am I doing wrong? I set my css file to be embedded resource, I have no styles at my file at all, but dashboard is rendered broken any way. I can even pass any random resource name without any errors with the same result.
Thanks in advance for the help.
Contributor guide
Research direction
Start by reproducing the dashboard breakage with DashboardRoutes.AddStylesheet(typeof(WebStartup).Assembly, "cssfix.css") and verify how the embedded resource is named and loaded. Compare the behavior with a random resource name and confirm that the dashboard renders correctly when the stylesheet is configured properly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100