Skip to content

Commit 4ab0b8f

Browse files
committed
[#2454] Fixed worker name box not scaling
1 parent 6650e3f commit 4ab0b8f

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

public/site_assets/bootstrap/css/mpos.css

+35
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ div.fade {
584584
.table > tbody > tr > td
585585
{
586586
padding:4px;
587+
vertical-align: middle;
587588
}
588589

589590
.panel > .table,
@@ -625,3 +626,37 @@ div.fade {
625626
}
626627

627628
/* End Footer */
629+
630+
/* EDIT */
631+
632+
.name {
633+
float: left;
634+
margin-bottom: 0;
635+
min-width: 100%;
636+
position: relative;
637+
width: auto;
638+
z-index: 2;
639+
transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
640+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
641+
display: block;
642+
border-bottom-right-radius: 4px;
643+
border-top-right-radius: 4px;
644+
margin-right: 25px;
645+
}
646+
647+
.name:focus {
648+
border-color: #66afe9;
649+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
650+
outline: 0 none;
651+
}
652+
653+
.navbar-right {
654+
float: right !important;
655+
margin-right: 0;
656+
}
657+
658+
.clear {
659+
padding: 0px;
660+
}
661+
662+
/* END EDIT */

templates/bootstrap/account/workers/default.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
{assign var="username" value="."|escape|explode:$WORKERS[worker].username:2}
5555
<tr>
5656
<td>
57-
<div class="input-group input-group-sm">
57+
<div class="input-group input-group-sm clear">
5858
<span {if $WORKERS[worker].hashrate > 0}style="color: orange"{/if} class="input-group-addon">{$username.0|escape}.</span>
59-
<input type="text" name="data[{$WORKERS[worker].id}][username]" value="{$username.1|escape}" size="10" required class="form-control" />
59+
<input type="text" name="data[{$WORKERS[worker].id}][username]" value="{$username.1|escape}" size="10" required class="name" />
6060
</div>
6161
</td>
6262
<td><input class="form-control" type="text" name="data[{$WORKERS[worker].id}][password]" value="{$WORKERS[worker].password|escape}" size="10" required></td>

0 commit comments

Comments
 (0)