themepark-dev / theme.park

A collection of themes/skins for 50 selfhosted apps!
https://theme-park.dev
MIT License
2.33k stars 777 forks source link

Some custom Gitea (1.18.2) themes freezes UI when editing a file #473

Closed Adito5393 closed 4 months ago

Adito5393 commented 1 year ago

Describe the bug Some custom theme blocks Gitea UI from allowing a user to edit a file.

The themes I tried & all freezes the UI:

Themes that work:

Theme Install Method (Don't skip) Following the docs: via the gitea/templates/custom/body_outer_pre.tmpl template.

Application Info (Don't skip)

To Reproduce Steps to reproduce the behavior:

  1. Go to any repository
  2. Click on any file (text) & click edit
  3. See the endless loading

Expected behavior Be able to write inside the Edit File tab. This endless loading does not happen on the 2 official themes.

Screenshots See this screenshot: image

Refused to apply style from 'https://git.ansi0.****/assets/css/theme-plex.css?v=1.18.2' because its MIME type ('') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

# FYI, dracula works & it gives the same error:
Refused to apply style from 'https://git.ansi0.****/assets/css/theme-dracula.css?v=1.18.2' because its MIME type ('') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
GilbN commented 1 year ago

Check if using the theme-park.dev domain works.

Adito5393 commented 1 year ago

If there is a problem with the domain, the whole theme should not work. Right? However, the theme loads and looks as expected.

Any idea how to debug the UI of the Edit file tab only? If you haave time, you could spin up a temporary gitea instance on gitpod & setup the custom CSS to reproduce the issue. (I don't know how to allow you access to my gitpod's instance)

I happens the same here: https://3000-gogitea-gitea-i5h380uwhda.ws-eu86.gitpod.io/adi/plm/_edit/main/README.md Error in the console: GET https://3000-gogitea-gitea-i5h380uwhda.ws-eu86.gitpod.io/assets/css/theme-plex.css?v=1.19.0~dev-447-g5ae07d4c2 net::ERR_ABORTED 404 (I guess this error is not related to our issue, because it is shown on other pages, where the page is loaded correctly.)

GilbN commented 4 months ago

There are new install instructions for Gitea https://docs.theme-park.dev/themes/gitea/#click-here-for-general-setup

Use develop for latest fixes for gitea 1.21.11