AlexNek / BlazorSortableList

A sortable list component for Blazor
MIT License
10 stars 2 forks source link

CSS not loaded #2

Open Kebechet opened 1 month ago

Kebechet commented 1 month ago

BlazorSortableList doesnt work correctly for me because the CSS containing

::deep .sortable-ghost {
  visibility: hidden;
}

::deep .sortable-fallback {
  opacity: 1 !important
}

is not loaded. What should I do ?

<link href="_content/BlazorSortableList/SortableList.razor.css" rel="stylesheet" /> doesnt work

Kebechet commented 1 month ago

omg, so I had to add this: <link href="{YOUR-ASSEMBLY-NAME}.styles.css" rel="stylesheet" />

Could you consider using JS initializers so that consumers of this library dont have to put these things into their code ? https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/startup?view=aspnetcore-8.0#javascript-initializers