fix monaco editor background

This commit is contained in:
2023-11-11 15:04:57 -07:00
parent e4cae72856
commit a0931f5003
4 changed files with 11 additions and 6 deletions

View File

@@ -165,7 +165,7 @@ short answer";
} }
<div class="col-auto me-3"> <div class="col-auto me-3">
<h3> <h3>
Points: @quizPoints Questions: @quizContext.Quiz?.Questions.Count() - Points: @quizPoints
</h3> </h3>
@if (quizInCanvas != null) @if (quizInCanvas != null)
{ {
@@ -188,7 +188,8 @@ short answer";
<section <section
class="flex-grow-1 w-100 d-flex justify-content-center border rounded-4 bg-dark-subtle" class="flex-grow-1 w-100 d-flex justify-content-center border rounded-4 bg-dark-subtle"
style="min-height: 10%; max-width: 100%;"> style="min-height: 10%; max-width: 100%;"
>
@if(showHelp) @if(showHelp)
{ {

View File

@@ -27,7 +27,6 @@
AutomaticLayout = true, AutomaticLayout = true,
FontFamily = "DM Mono, monospace", FontFamily = "DM Mono, monospace",
FontSize = 16, FontSize = 16,
}; };
} }

View File

@@ -14,7 +14,6 @@
get => _quizMarkdownInput; get => _quizMarkdownInput;
set set
{ {
Console.WriteLine("setting");
_quizMarkdownInput = value; _quizMarkdownInput = value;
try try
@@ -52,8 +51,6 @@
{ {
quizContext.StateHasChanged -= reload; quizContext.StateHasChanged -= reload;
} }
} }
<div class="d-flex flex-column h-100"> <div class="d-flex flex-column h-100">

View File

@@ -82,4 +82,12 @@ body {
/* Handle on hover */ /* Handle on hover */
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {
background: rgb(31, 31, 31); background: rgb(31, 31, 31);
}
/* monaco editor */
.monaco-editor-background, .monaco-editor .margin {
background-color: var(--bs-dark-bg-subtle) !important;
} }