hackclub / scrapbook

🔥 A daily streak system & portfolio for your projects.
https://scrapbook.hackclub.com
170 stars 45 forks source link

CSS Linking is broken. #811

Closed NimitVijayvargee closed 1 month ago

NimitVijayvargee commented 1 month ago

CSS Linking does not function as intended. Code is successfully linked to profile but does not appear on the actual site. Previews of the CSS are unaffected. My scrapbook page: My scrapbook page Scrapbook Customizer preview: image Github Gist Link: "https://gist.githubusercontent.com/NimitVijayvargee/e6052e6ea68eca8ed6c319c107313e5a/raw/fab771983368f067bd89df93617318d498eb9a01/style.css"

Also note that the undocumented API (scrapbook.hackclub.com/api/users/...) displays accurate CSS. image

JosiasAurel commented 1 month ago

After some digging, it appears simply linking a css file from a source without including the proper MIME type (text/css in this case) would result in the styles not being applied.

The linked PR fixes this issue!