Hi,
I would like to resize the panels that I have in a Splunk row. So I have 3 panels and I referred to some previous posts on doing the panel width resize using CSS. I remember this used to work? But I can't seem to get this working on my current Splunk dashboard. Due to some script dependencies, I am not able to use Dashboard Studio hence still stuck with the classic XML dashboard.
I referred to previous question on this and did exactly like what was mentioned but the panels still appear equally spaced at 33.33% each.
I'm assuming you have the following sort of CSS
#header_row .dashboard-cell:nth-child(1) {
width:52% !important;
}
#header_row .dashboard-cell:nth-child(2) {
width:24% !important;
}
#header_row .dashboard-cell:nth-child(3) {
width:24% !important;
}
which has stopped working with Splunk 9.4.
You need to add the following for each of your row definitions
#header_row .dashboard-cell {
flex:unset;
}
It's the flex attribute that is present in 9.4 variants that breaks things, so this fixes it.
I'm assuming you have the following sort of CSS
#header_row .dashboard-cell:nth-child(1) {
width:52% !important;
}
#header_row .dashboard-cell:nth-child(2) {
width:24% !important;
}
#header_row .dashboard-cell:nth-child(3) {
width:24% !important;
}
which has stopped working with Splunk 9.4.
You need to add the following for each of your row definitions
#header_row .dashboard-cell {
flex:unset;
}
It's the flex attribute that is present in 9.4 variants that breaks things, so this fixes it.
Thank you so much! How did you all figure it out? Life saver!