@@ -66,11 +66,17 @@ export function BMDashboard() {
6666 }
6767 } ) ;
6868
69- // Handle containers
69+ // Handle containers - only target containers within BMDashboard, not ProjectDetails
7070 const containers = bmContainer . querySelectorAll (
71- '.container, .projects-list, .project-summary, .log-bar, .log-bar-dark ' ,
71+ '.container, .projects-list, .project-summary' ,
7272 ) ;
7373 containers . forEach ( container => {
74+ // Skip if it's inside ProjectDetails (has project-details class in parent)
75+ const isInProjectDetails = container . closest ( '.project-details, .project-details-dark' ) ;
76+ if ( isInProjectDetails ) {
77+ return ; // Don't override ProjectDetails styles
78+ }
79+
7480 if ( darkMode ) {
7581 container . style . setProperty ( 'background-color' , '#1b2a41' , 'important' ) ;
7682 container . style . setProperty ( 'color' , '#ffffff' , 'important' ) ;
@@ -80,11 +86,17 @@ export function BMDashboard() {
8086 }
8187 } ) ;
8288
83- // Handle LogBar headings specifically
89+ // Handle LogBar headings specifically - only within BMDashboard, not ProjectDetails
8490 const logBarHeadings = bmContainer . querySelectorAll (
8591 '.log-bar h2, .log-bar-dark h2, .log-bar__section h2' ,
8692 ) ;
8793 logBarHeadings . forEach ( heading => {
94+ // Skip if it's inside ProjectDetails (has project-details class in parent)
95+ const isInProjectDetails = heading . closest ( '.project-details, .project-details-dark' ) ;
96+ if ( isInProjectDetails ) {
97+ return ; // Don't override ProjectDetails LogBar styles
98+ }
99+
88100 if ( darkMode ) {
89101 heading . style . setProperty ( 'color' , '#ffffff' , 'important' ) ;
90102 heading . style . setProperty ( 'text-shadow' , '0 1px 2px rgba(0, 0, 0, 0.5)' , 'important' ) ;
0 commit comments