mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 20:26:05 -05:00
Port the menu customization work from the ai_server branch onto master: - Add/edit/delete custom navbar/sidebar menu entries via Options > Menu - Per-entry Link column (new Menu_Items.Link) with ?view= fallback derived the same way as built-in items; custom entries render via buildMenuItem - Live icon preview (material/font awesome) with fixed-width preview cell - Per-row delete icon; add/reset buttons with tooltips - Surface DB errors when saving options config: capture the swallowed PDO error via dbLastError() and show it in the page error banner instead of redirecting past it Menu_Items.Link is added to zm_create.sql.in and as an idempotent ALTER in zm_update-1.39.16.sql. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
229 lines
4.6 KiB
CSS
229 lines
4.6 KiB
CSS
:root {
|
|
--height-block-before-table: 64px; /* Distance from the top border of the block where the table is located to the top border of the table itself */
|
|
--indent-bootstrap-row: 15px; /* Adjusting bootstrap class "row" */
|
|
}
|
|
|
|
.chosen-container-single .chosen-single {
|
|
height: calc(1.5em + 0.5rem + 2px);
|
|
line-height: calc(1.5em + 0.5rem + 2px);
|
|
}
|
|
|
|
input.small {
|
|
width: 6em;
|
|
}
|
|
|
|
input.medium {
|
|
width: 9em;
|
|
}
|
|
|
|
input.large {
|
|
width: 20em;
|
|
}
|
|
|
|
#contentTable.optionTable th, #contentTable.optionTable td {
|
|
vertical-align: top;
|
|
}
|
|
|
|
#contentTable.userTable th, #contentTable.userTable td {
|
|
text-align: center;
|
|
}
|
|
|
|
#contentTable.userTable .colMonitor, #contentTable.userTable .colUsername {
|
|
text-align: left;
|
|
}
|
|
|
|
#contentTable th {
|
|
text-align: left;
|
|
}
|
|
|
|
#content table .colCanMove,
|
|
#content table .colCanZoom,
|
|
#content table .colCanFocus,
|
|
#content table .colCanIris,
|
|
#content table .colCanWhiteBal,
|
|
#content table .colHasPresets {
|
|
text-align: center;
|
|
}
|
|
|
|
#sidebar {
|
|
min-width: 160px;
|
|
}
|
|
|
|
#optionsContainer {
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
padding-top: 15px;
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
|
|
#options {
|
|
/* margin-right: -15px;*/ /* you shouldn't do this for the sake of shifting the scrool bar, it breaks the style in different places. done differently*/
|
|
width: 100%;
|
|
}
|
|
|
|
body.sticky #options {
|
|
max-height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
body.sticky #sidebar {
|
|
height: 100%;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
#options div.col-md {
|
|
text-align: left;
|
|
}
|
|
|
|
input[type="text"] {
|
|
min-width: 50%;
|
|
}
|
|
input[name="newConfig[ZM_OPT_GOOG_RECAPTCHA_SITEKEY]"],
|
|
input[name="newConfig[ZM_OPT_GOOG_RECAPTCHA_SECRETKEY]"],
|
|
input[name="newConfig[ZM_OPT_GEOLOCATION_TILE_PROVIDER]"],
|
|
input[name="newConfig[ZM_OPT_GEOLOCATION_ACCESS_TOKEN]"],
|
|
input[name="newConfig[ZM_AUTH_HASH_SECRET]"],
|
|
input[name="newConfig[ZM_FONT_FILE_LOCATION]"],
|
|
input[name="newConfig[ZM_JANUS_SECRET]"],
|
|
input[name="newConfig[ZM_JANUS_PATH]"],
|
|
input[name="newConfig[ZM_UPDATE_CHECK_PROXY]"],
|
|
input[name="newConfig[ZM_WEB_TITLE]"],
|
|
input[name="newConfig[ZM_WEB_TITLE_PREFIX]"],
|
|
input[name="newConfig[ZM_HOME_URL]"],
|
|
input[name="newConfig[ZM_HOME_CONTENT]"],
|
|
input[name="newConfig[ZM_WEB_CONSOLE_BANNER]"],
|
|
input[name="newConfig[ZM_LOG_DEBUG_TARGET]"],
|
|
input[name="newConfig[ZM_LOG_DEBUG_FILE]"],
|
|
input[name="newConfig[ZM_MESSAGE_ADDRESS]"],
|
|
input[name="newConfig[ZM_MESSAGE_SUBJECT]"],
|
|
input[name="newConfig[ZM_FROM_EMAIL]"],
|
|
input[name="newConfig[ZM_URL]"],
|
|
input[name="newConfig[ZM_SSMTP_PATH]"],
|
|
input[name="newConfig[ZM_CSP_REPORT_URI]"],
|
|
input[name="newConfig[ZM_TELEMETRY_UUID]"],
|
|
input[name="newStorage[Name]"],
|
|
input[name="newStorage[Path]"],
|
|
input[name="newStorage[Url]"] {
|
|
width: 90%;
|
|
}
|
|
|
|
#options label {
|
|
font-weight: bold;
|
|
}
|
|
|
|
#options .help-block {
|
|
margin-top: 0;
|
|
}
|
|
|
|
#options .form-group {
|
|
margin: 0 5px 20px 5px;
|
|
border-bottom: 1px solid #e7e7e7;
|
|
padding-bottom: 0.75rem;
|
|
}
|
|
|
|
#options .form-group span.form-text {
|
|
margin-top: 0.5rem;
|
|
}
|
|
#options .col-md {
|
|
text-align: left;
|
|
}
|
|
|
|
form {
|
|
/* display: flex;*/
|
|
/* flex-direction: column;*/
|
|
width: 100%;
|
|
height: 100%;
|
|
/* padding-top: 2rem; */
|
|
}
|
|
|
|
@media screen and (max-width:767px) {
|
|
#options label,
|
|
label.col-form-label {
|
|
text-align: left;
|
|
padding-bottom: 5px;
|
|
}
|
|
}
|
|
|
|
div.dnsmasq {
|
|
width: 100%;
|
|
}
|
|
|
|
div.dnsmasq,
|
|
.dnsmasq .config {
|
|
text-align: left;
|
|
}
|
|
.dnsmasq .container {
|
|
margin-left: 0;
|
|
}
|
|
.dnsmasq .config .row > label {
|
|
width: 150px;
|
|
text-align: right;
|
|
}
|
|
.dnsmasq .config .row {
|
|
min-height:36px;
|
|
text-align: left;
|
|
display: flex;
|
|
align-content: space-around;
|
|
}
|
|
#leasesTable td,
|
|
#leasesTable th {
|
|
text-align: left;
|
|
}
|
|
input[name="config[dhcp-range][min]"],
|
|
input[name="config[dhcp-range][max]"] {
|
|
width: 120px;
|
|
min-width: 120px;
|
|
}
|
|
input[name="config[dhcp-range][expires]"] {
|
|
width: 100px;
|
|
min-width: 100px;
|
|
}
|
|
textarea.form-control-sm {
|
|
min-height: 3rem;
|
|
}
|
|
|
|
body.sticky .wrapper-scroll-table {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
body.sticky .bootstrap-table {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
body.sticky .fixed-table-container {
|
|
overflow-y: auto;
|
|
}
|
|
|
|
body.sticky #controlTable thead {
|
|
position: sticky;
|
|
top: 0;
|
|
box-shadow: 0 0px 0, 0 -3px 0 #dfe4ea;
|
|
}
|
|
|
|
/* Keep the menu icon preview a fixed size. An unknown material icon name
|
|
renders as its literal ligature text, which would otherwise widen the
|
|
column; clip it instead. */
|
|
.menuIconPreview {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 auto;
|
|
width: 24px;
|
|
height: 24px;
|
|
overflow: hidden;
|
|
}
|
|
.menuIconPreview .material-icons {
|
|
font-size: 24px;
|
|
line-height: 24px;
|
|
}
|