Skip to content

Commit 250d48a

Browse files
committed
Added scroll to bottom button
Added scroll to bottom button to: config page advanced config page alternative config editor page
1 parent 1ddae3f commit 250d48a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

resources/views/panel/config.blade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<form action="{{ route('editAC') }}" method="post">
1818
@csrf
1919
<div class="form-group col-lg-8">
20+
<br><a style="font-size:140%;" href="#bottom">🠟 Scroll to bottom 🠟</a><br>
2021
<label>Advanced Configuration file.</label>
2122
<pre><textarea class="form-control" name="AdvancedConfig" rows="280">{{ file_get_contents('config/advanced-config.php') }}</textarea></pre>
2223
</div>
@@ -34,18 +35,18 @@
3435
</form>
3536
@elseif(str_ends_with($_SERVER['REQUEST_URI'], 'env'))
3637
<h2 class="mb-4"><i class="bi bi-pencil-square"> ENV</i></h2>
37-
3838
<form action="{{ route('editENV') }}" method="post">
3939
@csrf
4040
<div class="form-group col-lg-8">
41+
<br><a style="font-size:140%;" href="#bottom">🠟 Scroll to bottom 🠟</a><br>
4142
<label>.env</label>
4243
<pre><textarea class="form-control" name="AdvancedConfig" rows="80">{{ file_get_contents('.env') }}</textarea></pre>
4344
</div>
4445
<button type="submit" class="mt-3 ml-3 btn btn-info">Save</button>
4546
</form>
4647
@endif
4748

48-
49+
<a name="bottom"></a>
4950

5051
@endsection
5152
@endif

resources/views/vendor/env-editor/index.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
<div class="tab-content" id="nav-tabContent">
4646
<div class="tab-pane fade show active p-3" id="current-env" role="tabpanel" aria-labelledby="nav-home-tab">
47+
<br><a style="font-size:140%;" href="#bottom">🠟 Scroll to bottom 🠟</a><br>
4748
<env-main-tab></env-main-tab>
4849
</div>
4950
<div class="tab-pane fade p-3" id="backup-env" role="tabpanel" aria-labelledby="nav-profile-tab">
@@ -54,7 +55,7 @@
5455
</div>
5556
<p style="color:#fff; font-weight:500; font-size:100%; position:relative; bottom:25px;">You can disable or enable registration <a href="{{ url('panel/pages') }}">here</a>.</p>
5657
</div>
57-
58+
<a name="bottom"></a>
5859
<env-keys-modal ref="keysModal"></env-keys-modal>
5960
</div>
6061
<p style="color:#fff; font-weight:500; font-size:160%;">Use the <a href="{{url()->current()}}/../panel/env">Alternative Config Editor ⤻</a></p>

0 commit comments

Comments
 (0)