Dashboards & Visualizations

CSS changes in v9.4.0

coreyCLI
Communicator

I have some html/css like below that sets the width of some single value panels.  In v8.3.1 this worked fine but now in v9.4.0 it does not work and sizes the panels evenly across the row.  IE - two single value panels, each get 50%.  I have tried using the Developer Tools in Chrome but all the elements I try have no affect.

 

 

#panel1 {
   width: 20% !important
}
#panel2 {
   width: 20% !important
}

 

 

Any thoughts?

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
0 Karma

coreyCLI
Communicator

interesting approach and thanks for providing it!  I came up with multiple solutions for the deferent scenarios we have.  We have some 9.4.0 right now we are testing and some 9.3.1 which will be upgraded to 9.3.2 soon.

  • If there was a single value panel in a row by itself I just updated the CSS to change the width of the entire row vs just the width of the panel by giving the row an id instead of giving the single value panel and id. 
#panelid { width: 30% !important;} --this works in 9.3.1 but not in 9.4.1

#rowWithPanel { width: 30% !important;} --this works in 9.4.1 and 9.3.1
  • If there were two single value panels in a row that we needed to adjust the width of I used the below.  I wrote it two ways so that it would work in all our environments that currently have v9.3.1 and 9.4.0.
#panelid1 { 
width: 15% !important; --this works in 9.3.1 but not 9.4.1
flex-basis: 15% !important; --this works in 9.4.1 but not in 9.3.1
} 
#panelid2 { 
width: 25% !important; --this works in 9.3.1 but not 9.4.1
flex-basis: 25% !important; --this works in 9.4.1 but not in 9.3.1
} 

 

johnhuang
Motivator

@coreyCLI, thank you for this. Adding "flex-basis" resolved the issue for me.

0 Karma

johnhuang
Motivator

We're seeing similar issues with 9.3.2408

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...