Skip to content

Commit

Permalink
更新到 .NET Core App 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wherewhere committed Jan 4, 2025
1 parent 59ccae0 commit f9f8e9f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Wherlog/Controls/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="main-layout">
<FluentLayout>
<FluentHeader Style="padding: env(titlebar-area-y, 0) calc(100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0)) 0 env(titlebar-area-x, 0); -webkit-app-region: drag;">@(site?.Title ?? "wherlog")</FluentHeader>
<FluentHeader Style="padding: env(titlebar-area-y, 0) calc(100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px)) 0 env(titlebar-area-x, 0); -webkit-app-region: drag;">@(site?.Title ?? "wherlog")</FluentHeader>
<FluentStack Class="main-split"
Width="100%"
Style="align-items: stretch;">
Expand Down
4 changes: 2 additions & 2 deletions Wherlog/Controls/NavMenu.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
top: 15px;
left: unset;
right: 20px;
right: calc(100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0) + 20px);
right: calc(100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 20px);
width: 20px;
height: 20px;
border: none;
Expand All @@ -51,7 +51,7 @@

::deep [dir="rtl"] .nav-menu-icon {
left: 20px;
left: calc(env(titlebar-area-x, 0) + 20px);
left: calc(env(titlebar-area-x, 0px) + 20px);
right: unset;
}
}
8 changes: 4 additions & 4 deletions Wherlog/Wherlog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
<Language>zh-CN</Language>
<LangVersion>latest</LangVersion>
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Markdig" Version="0.39.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.11" PrivateAssets="all" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="9.0.0" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.11.0" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.11.0" />
</ItemGroup>
Expand Down
10 changes: 10 additions & 0 deletions Wherlog/wwwroot/css/app.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
@import '../_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';

:root {
color-scheme: light;
}

@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
}
}

body {
--body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
font-family: var(--body-font);
Expand Down

0 comments on commit f9f8e9f

Please sign in to comment.