Activities of "ageiter"

Thank you Engincan.

Another problem that occurs with the top menu is the following: When I restart the application, the dropdown menu is not at the front level. I always have to refresh the page once first (F5) for the menu to appear fully. I have made a screencast about this:

Screencast

Maybe you guys can fix that too. Thanks.

I see changes to version 1.0, so version 1.0.1 is being displayed.

But I use the top menu layout. Can you check it with that?

@EngincanV, hm... i have now ABP 6.0.1 and LeptonX 1.0.1 and the problem still occurs...

Volo.Abp.AspNetCore.Components.Server.LeptonXTheme: Version="1.0.1" Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX: Version="1.0.1"

Would be great if I could get an answer on this topic. Thank you.

Oh, I did find the solution after several hours of searching - a lucky guess.

DefaultStyle must be set first, before the other styles are removed! No idea why that should matter, but that's how it works:

I would be happy if this question was not counted and you could increment my counter again.

Answer

Even though I got the MVC part to work, it doesn't work at all in the Blazor app. I have made a separate ticket for this.

Currently the ABP support doesn't seem to react that fast... hope I don't have to wait too long for an answer. But if you still have an idea, I would be very grateful :-)

https://support.abp.io/QA/Questions/4077/LeptonX-Problems-with-overwriting-styles

  • ABP Framework version: v6.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I have defined my own style according to your instructions (Documentation).

During development (Visual Studio) it works very well. But as soon as I deploy to Azure, the style is not applied correctly (see also [Ticket #3951](https://support.abp.io/QA/Questions/3951/LeptonX-Customization)).

Problem 1: On the MVC side (e.g. login) I could solve the problem by setting the "PreserveNewest" flag on the CSS files in the themes folder. But I guess that this should not be necessary, otherwise you would have written this in the manual. So what could be the reason that everything in the themes folder is ignored on publish?


Problem 2: It does not work at all in the Blazor application. The CSS files are present on the server, but they are not applied . It looks like they are overwritten by the original styles. I have tried a few things with the bundles, but unfortunately without success. In general, I find it interesting that the wrong styles are being loaded at all, since I defined and set a new style.

Example of how it should look (screenshot from development environment):

And this is how it looks when running on Azure:

It looks like the "Light" style is loaded even though I remove that and explicitly set "gyh" as the DefaultStyle.

Answer

Everything looks exactly the same for me.

But I found out that only the CSS files from the wwwroot are on the server. The ones under the folder "Themes" are not there.

When I set "Copy to Output Directory" to "Copy always", then they are exported. But according to your screenshot you didn't have to do that either... would you know what else it could be?

Answer

Thanks for the quick feedback.

Looks exactly the same as mine (just with difference top-menu).

But it probably only runs on your computer (via Visual Studio)? Then you will probably have the same problems with the deployment...

Unfortunately I get the following error message with my site on Azure: Refused to apply style from 'https://myproject.azurewebsites.net/Error?httpStatusCode=404' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Answer

Do you know how to integrate the CSS files in the folder Themes/LeptonX/Global/top-menu/css into the bundle?

It looks good on my machine, but when I deploy to Azure, the CSS files are missing.

Showing 211 to 220 of 243 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13