Skip to content

Commit d0f31db

Browse files
authored
Fixup css (#205)
* fixup css * ssh key is monospace
1 parent 9bd0eb2 commit d0f31db

File tree

4 files changed

+32
-23
lines changed

4 files changed

+32
-23
lines changed

webroot/css/global.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,16 @@ p {
9898
transform: translateY(-50%);
9999
}
100100

101-
button.plusBtn {
101+
button.plusBtn span{
102102
font-size: 24pt;
103-
display: block;
103+
font-family: monospace;
104+
}
105+
106+
button.plusBtn{
104107
width: 100%;
105108
max-width: 200px;
106109
padding: 0;
107110
overflow: hidden;
108-
margin-top: 10px;
109111
}
110112

111113
/* Form Elements */
@@ -335,4 +337,4 @@ div.searchWrapper>* {
335337

336338
div.searchWrapper>*:hover {
337339
background: var(--light_panel_background);
338-
}
340+
}

webroot/css/tables.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ table.longTable tr:not(:last-child) {
1616

1717
table tr,
1818
table td {
19-
padding: 8px 20px 8px 4px;
19+
padding: 0 20px 0 4px;
2020
overflow: hidden;
2121
white-space: nowrap;
2222
}
@@ -139,4 +139,4 @@ tr.key>td:first-child {
139139
tr.key>td:last-child {
140140
border-top-right-radius: 10px;
141141
border-bottom-right-radius: 10px;
142-
}
142+
}

webroot/panel/account.php

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,28 @@
9292
?>
9393

9494
<h1>Account Settings</h1>
95-
<hr>
9695

96+
<hr>
9797
<h5>Account Details</h5>
98-
99-
<p>
100-
<strong>Username</strong> <code><?php echo $USER->getUID(); ?></code>
101-
<br>
102-
<strong>Organization</strong> <code><?php echo $USER->getOrg(); ?></code>
103-
<br>
104-
<strong>Email</strong> <code><?php echo $USER->getMail(); ?></code>
105-
</p>
98+
<table>
99+
<tr>
100+
<th>Username</th>
101+
<td><code><?php echo $USER->getUID(); ?></code></td>
102+
</tr>
103+
<tr>
104+
<th>Organization</th>
105+
<td><code><?php echo $USER->getOrg(); ?></code></td>
106+
</tr>
107+
<tr>
108+
<th>Email</th>
109+
<td><code><?php echo $USER->getMail(); ?></code></td>
110+
</tr>
111+
</table>
106112

107113
<hr>
108-
109114
<h5>Account Status</h5>
110115

116+
111117
<?php
112118

113119
$isActive = count($USER->getGroups()) > 0;
@@ -162,8 +168,8 @@
162168
?>
163169

164170
<hr>
165-
166171
<h5>SSH Keys</h5>
172+
167173
<?php
168174
$sshPubKeys = $USER->getSSHKeys(); // Get ssh public key attr
169175

@@ -189,9 +195,10 @@
189195

190196
?>
191197

192-
<button type="button" class="plusBtn btnAddKey">&#43;</button>
198+
<button type="button" class="plusBtn btnAddKey"><span>&#43;</span></button>
193199

194200
<hr>
201+
<h5>Login Shell</h5>
195202

196203
<form action="" method="POST">
197204
<input type="hidden" name="form_type" value="loginshell" />
@@ -205,9 +212,10 @@
205212
<br>
206213
<input id='submitLoginShell' type='submit' value='Set Login Shell' />
207214
</form>
208-
<hr>
209215

216+
<hr>
210217
<h5>Account Deletion</h5>
218+
211219
<?php
212220
$hasGroups = count($USER->getGroups()) > 0;
213221

@@ -234,8 +242,6 @@
234242

235243
?>
236244

237-
<hr>
238-
239245
<script>
240246
const sitePrefix = '<?php echo $CONFIG["site"]["prefix"]; ?>';
241247
const ldapLoginShell = '<?php echo $USER->getLoginShell(); ?>';
@@ -286,6 +292,7 @@ function enableOrDisableSubmitLoginShell() {
286292
word-break: break-all;
287293
width: calc(100% - 44px);
288294
border-radius: 3px 0 0 3px;
295+
font-family: monospace;
289296
}
290297
</style>
291298

webroot/panel/groups.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@
127127

128128
<?php
129129
if ($SQL->accDeletionRequestExists($USER->getUID())) {
130-
echo "<button type='button' class='plusBtn btnAddPI' disabled>&#43;</button>";
130+
echo "<button type='button' class='plusBtn btnAddPI' disabled><span>&#43;</span></button>";
131131
echo "<label>You cannot join a PI while you have requested account deletion.</label>";
132132
} else {
133-
echo "<button type='button' class='plusBtn btnAddPI'>&#43;</button>";
133+
echo "<button type='button' class='plusBtn btnAddPI'><span>&#43;</span></button>";
134134
}
135135
?>
136136

0 commit comments

Comments
 (0)