Skip to content

Commit 529e5ab

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 ca6118f commit 529e5ab

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;
@@ -1610,6 +1615,26 @@ table.dataTable tbody > tr > .selected {
16101615
background-color: #d337;
16111616
}
16121617

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

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

16801688
#dhcp-hosts {

0 commit comments

Comments
 (0)