Add debug purple border to #content

This commit is contained in:
2026-04-16 14:48:54 +02:00
parent dbc6d987bb
commit a09cc86527

View File

@@ -29,6 +29,10 @@ class Application extends App implements IBootstrap {
$value = $config->getAppValue('minimalprofile', 'hidden_fields', '');
$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 = '';
if (!empty($hidden)) {
$selectors = [
@@ -39,7 +43,6 @@ class Application extends App implements IBootstrap {
foreach ($hidden as $field) {
if (isset($selectors[$field])) {
$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);
}
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);
}
}