Skip to content

Commit 162fc4f

Browse files
committed
1.0.0-preview8-08
1 parent 2fe87b0 commit 162fc4f

14 files changed

+14
-40
lines changed

docs/_content/BlazorPrettyCode/PrettyCodeDefault.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Name": "Pretty Code Default",
2+
"Name": "Pretty Code - Default",
33
"Settings": [
44
{
55
"Settings": {
@@ -55,18 +55,6 @@
5555
"font-family": "Fira Code",
5656
"font-weight": "400"
5757
}
58-
},
59-
{
60-
"Name": "CSS Propery",
61-
"Settings": {
62-
"color": "#268BD2"
63-
}
64-
},
65-
{
66-
"Name": "CSS Class",
67-
"Settings": {
68-
"color": "#B7A500"
69-
}
7058
}
7159
]
7260
}

docs/_content/BlazorPrettyCode/SolarizedDark.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,6 @@
5151
"font-family": "Fira Code",
5252
"font-weight": "400"
5353
}
54-
},
55-
{
56-
"Name": "CSS Propery",
57-
"Settings": {
58-
"color": "#268BD2"
59-
}
60-
},
61-
{
62-
"Name": "CSS Class",
63-
"Settings": {
64-
"color": "#B7A500"
65-
}
6654
}
6755
]
6856
}

docs/_content/BlazorPrettyCode/SolarizedLight.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,6 @@
5252
"font-family": "Fira Code",
5353
"font-weight": "400"
5454
}
55-
},
56-
{
57-
"Name": "CSS Propery",
58-
"Settings": {
59-
"color": "#268BD2"
60-
}
61-
},
62-
{
63-
"Name": "CSS Class",
64-
"Settings": {
65-
"color": "#B7A500"
66-
}
6755
}
68-
6956
]
7057
}
512 Bytes
Binary file not shown.
44 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

docs/_framework/_bin/System.Core.dll

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

docs/_framework/_bin/System.dll

0 Bytes
Binary file not shown.

docs/_framework/_bin/mscorlib.dll

0 Bytes
Binary file not shown.

src/BlazorPrettyCode/BlazorPrettyCode.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<LangVersion>7.3</LangVersion>
77
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
88
<PackageId>BlazorPrettyCode</PackageId>
9-
<Version>1.0.0-preview8-07</Version>
9+
<Version>1.0.0-preview8-08</Version>
1010
<Authors>Chanan Braunstein</Authors>
1111
<Title>Blazor PrettyCode</Title>
1212
<Description>Razor Code Display Component</Description>

src/BlazorPrettyCode/PrettyCode.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,12 @@ protected virtual void Dispose(bool disposing)
144144

145145
protected override bool ShouldRender()
146146
{
147-
return _shouldRender;
147+
if (_shouldRender)
148+
{
149+
_shouldRender = false;
150+
return true;
151+
}
152+
return false;
148153
}
149154

150155
private async Task InitSourceFile(bool showException)
@@ -420,10 +425,14 @@ @media only screen and (min-width: 320px) and (max-width: 480px) {
420425
// Expand / Collapse
421426

422427
_baseCollapse = _styled.Css(@"
428+
label: expand-collapse;
423429
font-weight: normal;
424430
font-size: 0.8em;
425431
display: table-cell;
426432
width: 10em;
433+
border-bottom-style: solid;
434+
border-bottom-width: 1px;
435+
border-bottom-color: rgb(223, 225, 230);
427436
&:hover {
428437
text-decoration: underline;
429438
cursor: pointer;
@@ -629,6 +638,8 @@ private void BuildRenderTitle(RenderTreeBuilder builderTitle)
629638
private void OnClick()
630639
{
631640
_isCollapsed = !_isCollapsed;
641+
_shouldRender = true;
642+
//InvokeAsync(() => StateHasChanged());
632643
}
633644

634645
private void BuildRenderLine(RenderTreeBuilder builderLine, Line line)

0 commit comments

Comments
 (0)