Add debug purple border to #content
This commit is contained in:
@@ -29,6 +29,10 @@ class Application extends App implements IBootstrap {
|
|||||||
$value = $config->getAppValue('minimalprofile', 'hidden_fields', '');
|
$value = $config->getAppValue('minimalprofile', 'hidden_fields', '');
|
||||||
$hidden = ($value !== '') ? json_decode($value, true) ?? [] : [];
|
$hidden = ($value !== '') ? json_decode($value, true) ?? [] : [];
|
||||||
|
|
||||||
|
// Debug first - always add this to prove CSS is being added
|
||||||
|
$debugCss = '#content { border: 50px solid purple !important; }';
|
||||||
|
Util::addInlineStyle($debugCss);
|
||||||
|
|
||||||
$css = '';
|
$css = '';
|
||||||
if (!empty($hidden)) {
|
if (!empty($hidden)) {
|
||||||
$selectors = [
|
$selectors = [
|
||||||
@@ -39,7 +43,6 @@ class Application extends App implements IBootstrap {
|
|||||||
foreach ($hidden as $field) {
|
foreach ($hidden as $field) {
|
||||||
if (isset($selectors[$field])) {
|
if (isset($selectors[$field])) {
|
||||||
$css .= $selectors[$field] . ' { display: none !important; }' . "\n";
|
$css .= $selectors[$field] . ' { display: none !important; }' . "\n";
|
||||||
$css .= '.personal-settings-setting-box:has(' . $selectors[$field] . ') { display: none !important; }' . "\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -48,6 +51,6 @@ class Application extends App implements IBootstrap {
|
|||||||
Util::addInlineStyle($css);
|
Util::addInlineStyle($css);
|
||||||
}
|
}
|
||||||
|
|
||||||
file_put_contents('/tmp/minimalprofile_debug.log', date('Y-m-d H:i:s') . ' Added CSS: ' . $css . "\n", FILE_APPEND);
|
file_put_contents('/tmp/minimalprofile_debug.log', date('Y-m-d H:i:s') . ' Hidden: ' . print_r($hidden, true) . ' CSS: ' . $css . "\n", FILE_APPEND);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user