Skip to content

Commit da7a6be

Browse files
dashboard: minor styling tweaks
1 parent 28b9ee3 commit da7a6be

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

assets/css/dashboard.css

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@ body.koko-analytics {
8080
/* dashboard box */
8181
.ka-card {
8282
background: #fff;
83-
border: 1px solid #dcdcde;
84-
border-radius: 8px;
85-
box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
83+
border: 1px solid #dcdcde;
84+
border-radius: 8px;
85+
box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
86+
height: 100%;
87+
width: 100%;
88+
box-sizing: border-box;
8689
}
8790
.ka-card-head {
8891
display: flex;
@@ -336,6 +339,9 @@ body.koko-analytics {
336339
padding: .5rem 1rem;
337340
border-bottom: 1px solid #f0f0f1;
338341
}
342+
.ka-table tr:last-child td {
343+
border-bottom: 0;
344+
}
339345
.ka-table tr:hover td {
340346
background: #fafcfe;
341347
}
@@ -353,6 +359,7 @@ body.koko-analytics {
353359
color: #646970;
354360
text-decoration: none;
355361
vertical-align: middle;
362+
line-height: 1;
356363
}
357364
.ka-visit-link:hover {
358365
color: var(--ka-link-color);

src/Dashboard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function get_components(): array
274274
public function pagination(string $key, int $offset, int $limit, int $count): void
275275
{
276276
if ($offset >= $limit || $offset + $limit < $count) {
277-
?>
277+
?>
278278
<div class="ka-pagination2">
279279
<span class="ka-pagination2-muted" ><?php echo (int) $offset ?><?php echo (int) min($count, $offset + $limit); ?> of <?php echo (int) $count; ?></span>
280280
<span>
@@ -291,7 +291,7 @@ public function pagination(string $key, int $offset, int $limit, int $count): vo
291291
<?php endif; ?>
292292
</span>
293293
</div>
294-
<?php
294+
<?php
295295
}
296296
}
297297

0 commit comments

Comments
 (0)