Skip to content

Commit bf69448

Browse files
committed
Avoid overlaping text when showing confirmation messages on small screens
Also fix LCARS theme styles for the new interface Signed-off-by: RD WebDesign <[email protected]>
1 parent cc6db4c commit bf69448

2 files changed

Lines changed: 27 additions & 19 deletions

File tree

settings-dhcp.lp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ mg.include('scripts/lua/settings_header.lp','r')
173173
<div class="box-body">
174174
<div class="row">
175175
<div class="col-md-12">
176-
<div class="table-responsive" style="margin-bottom: 10px;">
176+
<div class="table-responsive">
177177
<table id="StaticDHCPTable" class="table table-striped table-bordered nowrap" width="100%">
178178
<thead>
179179
<tr>

style/pi-hole.css

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,11 @@ table.dataTable tbody > tr > .selected {
16001600
transition: opacity 200ms ease-in-out;
16011601
}
16021602

1603+
#StaticDHCPTable,
1604+
.table-responsive:has(#StaticDHCPTable) {
1605+
margin: 0;
1606+
}
1607+
16031608
#StaticDHCPTable th:last-of-type,
16041609
#StaticDHCPTable td:last-of-type {
16051610
width: 106px;
@@ -1611,6 +1616,26 @@ table.dataTable tbody > tr > .selected {
16111616
color: #fff;
16121617
}
16131618

1619+
/* Show hint message on the static DHCP lease table, when at least one Save button exists */
1620+
div:has(> .table-responsive #StaticDHCPTable) {
1621+
position: relative;
1622+
margin-bottom: 15px;
1623+
}
1624+
div:has(> .table-responsive #StaticDHCPTable .save-static-row)::after {
1625+
content: 'Please confirm changes using the green button, then click "Save & Apply" before leaving the page.';
1626+
position: relative;
1627+
margin: 2px 0 15px;
1628+
padding: 4px 12px;
1629+
width: -moz-fit-content;
1630+
width: fit-content;
1631+
max-width: 100%;
1632+
color: #000;
1633+
font-style: italic;
1634+
text-align: right;
1635+
background: #eedd88;
1636+
float: right;
1637+
}
1638+
16141639
textarea.field-sizing-content {
16151640
min-block-size: 3.5rlh;
16161641
max-block-size: 20rlh;
@@ -1625,24 +1650,6 @@ textarea.no-wrap {
16251650
resize: none;
16261651
}
16271652

1628-
/* Show hint message on the static DHCP lease table, when at least one Save button exists */
1629-
div:has(> .table-responsive #StaticDHCPTable) {
1630-
position: relative;
1631-
}
1632-
div:has(> .table-responsive #StaticDHCPTable .save-static-row)::before {
1633-
content: 'Please confirm changes using the green button, then click "Save & Apply" before leaving the page.';
1634-
position:absolute;
1635-
display: block;
1636-
padding: 4px 12px;
1637-
max-width: calc(100% - 30px);
1638-
right: 15px;
1639-
bottom: 0px;
1640-
color: #000;
1641-
font-style: italic;
1642-
text-align: right;
1643-
background: #eedd88;
1644-
}
1645-
16461653
/*
16471654
Calculate the total height using the number of lines and line-height. Also account for borders and padding.
16481655
Use the same values used by ".form-control" class:
@@ -1676,6 +1683,7 @@ border-top=1px + padding-top=6px + padding-bottom=6px + border-bottom=1px
16761683
background: #ed8;
16771684
box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
16781685
cursor: not-allowed;
1686+
z-index: 10;
16791687
}
16801688

16811689
#dhcp-hosts {

0 commit comments

Comments
 (0)