Skip to content

Commit bf514f0

Browse files
author
Kristan Kenney
committed
Ensure long table entries are truncated to prevent UI overlap
1 parent 4e6f5a8 commit bf514f0

20 files changed

+26
-20
lines changed

web/css/src/styles.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,12 @@ div.l-content > div.l-separator:nth-of-type(4) {
19791979
border-left: 1px solid transparent;
19801980
}
19811981

1982+
.l-unit__stat-col--left.truncate {
1983+
overflow: hidden;
1984+
text-overflow: ellipsis;
1985+
white-space: nowrap;
1986+
}
1987+
19821988
.l-unit__stat-col--left.super-compact {
19831989
width: 50px;
19841990
}

web/css/styles.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/templates/admin/list_backup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<div class="clearfix l-unit__stat-col--left super-compact">
7575
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="backup[]" value="<?php echo $key ?>">
7676
</div>
77-
<div class="clearfix l-unit__stat-col--left wide-3"><b><a href="/list/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('restore')?>"><?=$key?></a></b></div>
77+
<div class="clearfix l-unit__stat-col--left wide-3 truncate"><b><a href="/list/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('restore')?>"><?=$key?></a></b></div>
7878
<!-- START QUICK ACTION TOOLBAR AREA -->
7979
<div class="clearfix l-unit__stat-col--left compact-4 text-right">
8080
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">

web/templates/admin/list_cron.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<div class="clearfix l-unit__stat-col--left super-compact">
8989
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="job[]" value="<?php echo $key ?>">
9090
</div>
91-
<div class="clearfix l-unit__stat-col--left wide-5"><b><a href="/edit/cron/?job=<?=$data[$key]['JOB']?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Cron Job')?>"><?=htmlspecialchars($data[$key]['CMD'], ENT_NOQUOTES)?></a></b></div>
91+
<div class="clearfix l-unit__stat-col--left wide-5 truncate"><b><a href="/edit/cron/?job=<?=$data[$key]['JOB']?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Cron Job')?>"><?=htmlspecialchars($data[$key]['CMD'], ENT_NOQUOTES)?></a></b></div>
9292
<!-- START QUICK ACTION TOOLBAR AREA -->
9393
<div class="clearfix l-unit__stat-col--left compact-2 text-right">
9494
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">

web/templates/admin/list_db.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
<div class="clearfix l-unit__stat-col--left super-compact">
122122
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="database[]" value="<?php echo $key ?>">
123123
</div>
124-
<div class="clearfix l-unit__stat-col--left wide-3"><b><a href="/edit/db/?database=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Database')?>"><?=$key?></a></b></div>
124+
<div class="clearfix l-unit__stat-col--left wide-3 truncate"><b><a href="/edit/db/?database=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Database')?>"><?=$key?></a></b></div>
125125
<!-- START QUICK ACTION TOOLBAR AREA -->
126126
<div class="clearfix l-unit__stat-col--left text-right compact-2">
127127
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">

web/templates/admin/list_dns.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<div class="clearfix l-unit__stat-col--left super-compact">
8585
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="domain[]" value="<?php echo $key ?>">
8686
</div>
87-
<div class="clearfix l-unit__stat-col--left wide-3">
87+
<div class="clearfix l-unit__stat-col--left wide-3 truncate">
8888
<b><a href="/list/dns/?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('DNS records')?>: <?=$key?>"><?=$key?></a></b>
8989
<?=empty($data[$key]['SRC'])? '' : '<br/><span style="font-size:11px;">' . htmlspecialchars($data[$key]['SRC'], ENT_QUOTES) . '</span>'; ?>
9090
</div>

web/templates/admin/list_dns_rec.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<div class="clearfix l-unit__stat-col--left super-compact">
6565
<input id="check<?=$data[$key]['ID']?>" class="ch-toggle" type="checkbox" name="record[]" value="<?=$data[$key]['ID']?>">
6666
</div>
67-
<div class="clearfix l-unit__stat-col--left small"><b><a href="/edit/dns/?domain=<?=htmlspecialchars($_GET['domain'])?>&record_id=<?=$data[$key]['ID']?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing DNS Record').': '.htmlspecialchars($data[$key]['RECORD'])?>"><? echo substr($data[$key]['RECORD'], 0, 12); if(strlen($data[$key]['RECORD']) > 12 ) echo '...'; ?></a></b></div>
67+
<div class="clearfix l-unit__stat-col--left small truncate"><b><a href="/edit/dns/?domain=<?=htmlspecialchars($_GET['domain'])?>&record_id=<?=$data[$key]['ID']?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing DNS Record').': '.htmlspecialchars($data[$key]['RECORD'])?>"><? echo substr($data[$key]['RECORD'], 0, 12); if(strlen($data[$key]['RECORD']) > 12 ) echo '...'; ?></a></b></div>
6868
<!-- START QUICK ACTION TOOLBAR AREA -->
6969
<div class="clearfix l-unit__stat-col--left super-compact text-right">
7070
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
@@ -87,7 +87,7 @@
8787
<div class="clearfix l-unit__stat-col--left compact text-center"><?=$data[$key]['PRIORITY']?>&nbsp;</div>
8888
<div class="clearfix l-unit__stat-col--left compact text-center"><?php if($data[$key]['TTL'] == ''){ echo _('Default'); }else{ echo $data[$key]['TTL'];} ?></div>
8989
<div class="clearfix l-unit__stat-col--left super-compact"><b>&nbsp;</b></div>
90-
<div class="clearfix l-unit__stat-col--left wide-6" style="word-break: break-word;"><?=htmlspecialchars($data[$key]['VALUE'], ENT_QUOTES, 'UTF-8')?></div>
90+
<div class="clearfix l-unit__stat-col--left wide-6 truncate" style="word-break: break-word;"><?=htmlspecialchars($data[$key]['VALUE'], ENT_QUOTES, 'UTF-8')?></div>
9191
</div>
9292
</div>
9393
<?}?>

web/templates/admin/list_mail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<div class="clearfix l-unit__stat-col--left super-compact">
9595
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="domain[]" value="<?php echo $key ?>">
9696
</div>
97-
<div class="clearfix l-unit__stat-col--left wide-3"><b><a href="?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('mail accounts')?>: <?=$key?>"><?=$key?></a></b></div>
97+
<div class="clearfix l-unit__stat-col--left wide-3 truncate"><b><a href="?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('mail accounts')?>: <?=$key?>"><?=$key?></a></b></div>
9898
<!-- START QUICK ACTION TOOLBAR AREA -->
9999
<div class="clearfix l-unit__stat-col--left text-right compact-4">
100100
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">

web/templates/admin/list_mail_acc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="account[]" value="<?php echo $key ?>">
8888
<input type="hidden" value="<?php echo $_GET['domain'] ?>" name="domain" />
8989
</div>
90-
<div class="clearfix l-unit__stat-col--left wide-3"><b><a href="/edit/mail/?domain=<?=htmlspecialchars($_GET['domain'])?>&account=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Mail Account')?>: <?=$key?>@<?=htmlspecialchars($_GET['domain'])?>"><?=$key."@".$_GET['domain']?></a></b></div>
90+
<div class="clearfix l-unit__stat-col--left wide-3 truncate"><b><a href="/edit/mail/?domain=<?=htmlspecialchars($_GET['domain'])?>&account=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Mail Account')?>: <?=$key?>@<?=htmlspecialchars($_GET['domain'])?>"><?=$key."@".$_GET['domain']?></a></b></div>
9191

9292
<!-- START QUICK ACTION TOOLBAR AREA -->
9393
<div class="clearfix l-unit__stat-col--left text-right compact-4">

web/templates/admin/list_packages.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<div class="clearfix l-unit__stat-col--left super-compact">
6969
<input id="check<?=$i?>" class="ch-toggle" type="checkbox" name="user[]" value="<?=$key?>">
7070
</div>
71-
<div class="clearfix l-unit__stat-col--left wide-2"><b><a href="/edit/package/?package=<?=$key?>&token=<?=$_SESSION['token']?>"><?=$key?></b></a></div>
71+
<div class="clearfix l-unit__stat-col--left wide-2 truncate"><b><a href="/edit/package/?package=<?=$key?>&token=<?=$_SESSION['token']?>"><?=$key?></b></a></div>
7272
<!-- START QUICK ACTION TOOLBAR AREA -->
7373
<div class="clearfix l-unit__stat-col--left text-right compact-3">
7474
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">

0 commit comments

Comments
 (0)