Skip to content

Commit b126f15

Browse files
authored
Merge pull request #1528 from hydephp/visual-dashboard-bugfixes
Visual dashboard bugfixes
2 parents cfb3b64 + 0ecb0d1 commit b126f15

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ This serves two purposes:
2727
- Fixed icons not being considered as images by dashboard viewer in https://github.com/hydephp/develop/pull/1512
2828
- HydeFront: Fixed bug where heading permalink buttons were included in text represented output in https://github.com/hydephp/develop/pull/1519
2929
- HydeFront: Fix visual overflow bug in inline code blocks within blockquotes https://github.com/hydephp/hydefront/issues/65 in https://github.com/hydephp/develop/pull/1525
30+
- Realtime Compiler: Fixes visual dashboard bugs https://github.com/hydephp/realtime-compiler/issues/23 and https://github.com/hydephp/realtime-compiler/issues/24 in https://github.com/hydephp/develop/pull/1528
3031

3132
### Security
3233
- in case of vulnerabilities.

packages/realtime-compiler/resources/dashboard.blade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
<a class="nav-link px-3" href="/dashboard">Open full page dashboard</a>
4242
</div>
4343
@else
44-
<div class="nav-item text-nowrap">
45-
<a class="nav-link px-3" href="/">Back to site</a>
46-
</div>
44+
<div class="nav-item text-nowrap">
45+
<a class="nav-link px-3" href="/">Back to site</a>
46+
</div>
4747
@endif
4848
</div>
4949
</nav>
@@ -228,7 +228,7 @@
228228
@endif
229229
</div>
230230
@else
231-
<table class="table table-bordered">
231+
<table class="table table-bordered d-block overflow-x-auto">
232232
<tr>
233233
@foreach(['Page Type', 'Route Key', 'Source File', 'Output File', 'Identifier'] as $header)
234234
<th>{{ $header }}</th>
@@ -288,7 +288,7 @@
288288
There are no media files yet. Why not add some?
289289
</div>
290290
@else
291-
<div class="container d-flex flex-wrap" style="margin: 0 -0.5rem">
291+
<div class="container d-flex flex-wrap px-0">
292292
@foreach(\Hyde\Support\Filesystem\MediaFile::all() as $mediaFile)
293293
<div class="col-lg-4 p-2 d-flex flex-grow-1">
294294
<figure class="card w-100 p-2 mb-0">
@@ -310,7 +310,7 @@
310310
</div>
311311
<div class="col">
312312
<div class="row flex-nowrap justify-content-start">
313-
<p class="col-auto text-truncate mb-0 pe-2">
313+
<p class="col-auto text-truncate mb-0 pe-2" style="max-width: 210px;">
314314
<strong title="{{ $mediaFile->getPath() }}">{{ $mediaFile->getName() }}</strong>
315315
</p>
316316
<div class="col px-0 text-nowrap">

packages/realtime-compiler/src/Http/DashboardController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ protected function handlePostRequest(): JsonResponse
116116

117117
public function getVersion(): string
118118
{
119-
$version = InstalledVersions::getPrettyVersion('hyde/realtime-compiler');
120-
121-
return str_starts_with($version, 'dev-') ? $version : "v$version";
119+
return InstalledVersions::getPrettyVersion('hyde/realtime-compiler');
122120
}
123121

124122
public function getProjectInformation(): array

0 commit comments

Comments
 (0)