Applies miscellaneous configuration and UI fixes

This commit is contained in:
BinaryAlley committed 2026-08-09 13:18:16 -07:00
1 parent a7c742d681
commit e0064a56f9
6 files changed
+6 -5

No files matched your search

+1
View File
@@ -76,6 +76,7 @@ dotnet_style_readonly_field = true:error
# Parameter preferences # Parameter preferences
dotnet_code_quality_unused_parameters = all:suggestion dotnet_code_quality_unused_parameters = all:suggestion
dotnet_diagnostic.CA1859.severity = none
# Strings # Strings
csharp_style_prefer_string_interpolation = true:suggestion csharp_style_prefer_string_interpolation = true:suggestion
-1
View File
@@ -18,7 +18,6 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" /> <PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
<PackageReference Include="System.IO.Abstractions" Version="21.1.3" /> <PackageReference Include="System.IO.Abstractions" Version="21.1.3" />
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="5.0.0" />
<PackageReference Include="Mediator.Abstractions" Version="3.0.0-preview.27" /> <PackageReference Include="Mediator.Abstractions" Version="3.0.0-preview.27" />
</ItemGroup> </ItemGroup>
@@ -13,7 +13,7 @@
"MinimumLevel": { "MinimumLevel": {
"Default": "Information", "Default": "Information",
"Override": { "Override": {
"Microsoft.EntityFrameworkCore.Database.Command": "Debug" "Microsoft.EntityFrameworkCore.Database.Command": "Warning"
} }
}, },
"Enrich": [ "Enrich": [
@@ -95,6 +95,7 @@ public class LibraryManagementController : Controller
[RequirePermission(AuthorizationPermission.CanCreateLibraries)] [RequirePermission(AuthorizationPermission.CanCreateLibraries)]
public async Task<IActionResult> SaveLibrary([FromBody] LibraryModel data, CancellationToken cancellationToken) public async Task<IActionResult> SaveLibrary([FromBody] LibraryModel data, CancellationToken cancellationToken)
{ {
// TODO: 1. this also needs to send the image files themselves to the API, since the server could be remote; for now, it assumes local paths which it can later read, which works only if the server is local too
// call different API endpoints based on whether this is a new library or an existing one // call different API endpoints based on whether this is a new library or an existing one
LibraryModel response = data.Id.HasValue LibraryModel response = data.Id.HasValue
? await _apiHttpClient.PutAsync<LibraryModel, LibraryModel>($"libraries/{data.Id}", data, cancellationToken).ConfigureAwait(false) ? await _apiHttpClient.PutAsync<LibraryModel, LibraryModel>($"libraries/{data.Id}", data, cancellationToken).ConfigureAwait(false)
@@ -7,12 +7,12 @@
height: 100%; height: 100%;
background-color: #000000; background-color: #000000;
opacity: 0.6; opacity: 0.6;
z-index: 1998; z-index: 998;
} }
.dialog-container { .dialog-container {
display: none; display: none;
position: absolute; position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
@@ -107,7 +107,7 @@ main {
#modal-background-article { #modal-background-article {
display: none; display: none;
z-index: 998; z-index: 998;
position: absolute; position: fixed;
top: 0px; top: 0px;
left: 0px; left: 0px;
min-width: 100%; min-width: 100%;