Full Width Interactive Report Search Field


In this blog, I demonstrate how to always display a full width Interactive Report Search field regardless of the browser width, mobile or any CSS media queries.
Here is what is looks like as standard
Here is what it looks like with the modification
This especially works well when combined with the Slimmer Interactive Report Controls for Modal Dialogs CSS fix. See picture:
All you need to do is paste in this big wad of CSS as Page > CSS > Inline
/* Force the toolbar and controls to use the full width */
#a-IRR-toolbar,
.a-IRR-toolbar,
.a-IRR-controls {
width: 100% !important;
min-width: 0 !important;
max-width: 100vw !important;
display: flex !important;
}
/* Make the search group and field container grow */
.a-IRR-controlGroup--search {
flex: 1 1 0 !important;
min-width: 0 !important;
max-width: 100% !important;
display: flex !important;
}
.a-IRR-search {
flex: 1 1 0 !important;
min-width: 0 !important;
max-width: 100% !important;
display: flex !important;
align-items: stretch !important;
}
.a-IRR-searchFieldContainer {
flex: 1 1 0 !important;
min-width: 0 !important;
max-width: 100% !important;
display: flex !important;
}
.a-IRR-search-field {
width: 100% !important;
min-width: 0 !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
ENJOY!
What’s the picture? When the contrail lines up perfectly above a tree - Farm near Kirkby Overblow. Visit Yorkshire!
Subscribe to my newsletter
Read articles from Matt Mulvaney directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Matt Mulvaney
Matt Mulvaney
With around 20 years on the job, Matt is one of the most experienced software developers at Pretius. He likes meeting new people, traveling to conferences, and working on different projects. He’s also a big sports fan (regularly watches Leeds United, Formula 1, and boxing), and not just as a spectator – he often starts his days on a mountain bike, to tune his mind.