-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some UI problems that are not in the new version
- Loading branch information
1 parent
b1cad97
commit d82a4ed
Showing
8 changed files
with
92 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
<base href="~/" /> | ||
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> | ||
<link rel="stylesheet" href="_content/Radzen.Blazor/css/material-base.css"> | ||
<link href="css/site.css" rel="stylesheet" /> | ||
<link href="ChatRPG.styles.css" rel="stylesheet" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Microsoft.JSInterop; | ||
|
||
namespace ChatRPG.Services; | ||
|
||
public class JsInteropService : IAsyncDisposable | ||
{ | ||
private readonly IJSRuntime _jsRuntime; | ||
private IJSObjectReference? _scrollModule; | ||
private IJSObjectReference? _detectScrollBarModule; | ||
|
||
public JsInteropService(IJSRuntime jsRuntime) | ||
{ | ||
_jsRuntime = jsRuntime; | ||
} | ||
|
||
public async Task<IJSObjectReference> GetScrollModuleAsync() | ||
{ | ||
return _scrollModule ??= await _jsRuntime.InvokeAsync<IJSObjectReference>("import", "./js/scroll.js"); | ||
} | ||
|
||
public async Task<IJSObjectReference> GetDetectScrollBarModuleAsync() | ||
{ | ||
return _detectScrollBarModule ??= await _jsRuntime.InvokeAsync<IJSObjectReference>("import", "./js/detectScrollBar.js"); | ||
} | ||
|
||
public async ValueTask DisposeAsync() | ||
{ | ||
if (_scrollModule != null) | ||
{ | ||
await _scrollModule.DisposeAsync(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters