Skip to content

Commit 5f90d84

Browse files
JaydenDownesDaneEveritt
authored andcommitted
Fixed Search Bar Scaling in Firefox (pterodactyl#1187)
Fixed scaling issue with Firefox where it would scale the search bar to 30% of the width of the box-tools container instead of 30% of the row container. (Note this is not a fix for the issue with it appearing on a separate line on mobiles).
1 parent f54dc24 commit 5f90d84

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

public/themes/pterodactyl/css/pterodactyl.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,11 @@ label.control-label > span.field-optional:before {
474474
width: auto;
475475
}
476476

477+
.search01 {
478+
width: 30%;
479+
}
480+
477481
.number-info-box-content {
478482
padding: 15px 10px 0;
479483
}
484+

resources/themes/pterodactyl/base/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
<div class="box">
2424
<div class="box-header">
2525
<h3 class="box-title">@lang('base.index.list')</h3>
26-
<div class="box-tools">
26+
<div class="box-tools search01">
2727
<form action="{{ route('index') }}" method="GET">
2828
<div class="input-group input-group-sm">
29-
<input type="text" name="query" class="form-control pull-right" style="width:30%;" value="{{ request()->input('query') }}" placeholder="@lang('strings.search')">
29+
<input type="text" name="query" class="form-control pull-right" value="{{ request()->input('query') }}" placeholder="@lang('strings.search')">
3030
<div class="input-group-btn">
3131
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
3232
</div>

0 commit comments

Comments
 (0)