Comments (3)
FWIW, in an app the other day I made the styling around that area a bit more specific:
.datagrid .paging {
margin-right: 0 !important;
}
.datagrid .paging th, .datagrid .sorting dt {
font-size: 12px;
}
.datagrid .paging .perpage {
width: 75px;
}
It looks like there is more happening here, though, with the overlapping, which may have to do with other style elements in the app template you're working with.
from webgrid.
I noticed the overlapping also occurring on another project, which has basically no added styles. This makes it difficult to use the sort dropdown as most of its hitbox is covered by the absolute positioned table that should sit below it:
This is a quick fix for the overlapping:
.datagrid form.header {
min-height: 140px;
}
But the layout for this whole section is pretty archaic, using floats and tables... that also makes it relatively inflexible and easy to break. I took a quick stab at modernizing it using flexbox, which has broad support back to IE11, albeit with a couple of the usual IE bugs. At the same time I attempted to improve the layout to make it more obvious that you need to use the Apply button for all of the elements.
Open to feedback, of course.
from webgrid.
I'm all for fixing the layout so it applies properly in all modern browsers and works with more generic templates. But, moving things around too much will be problematic for some of our larger apps, who have some power users who are used to the layout. IMO we should save broader facelifts for webgrid 2.0, which will have additional options/settings to place.
I'd be fine with having the Apply button in it's own "row", but I think it needs to stay on the left. The vast majority of operations users make in that area are the filters. I have thought it would look better if Sort By were next to its first box, rather than above it, but I'd keep it over to the right, above the pagination controls.
from webgrid.
Related Issues (20)
- json should include totals rows
- Improve filter constructor for better dev UX
- Add xlsx methods to testing helper GridBase
- Improve argument loader docs HOT 2
- Clarify intent of GridBase.test_search_expr_passes
- Better example app
- CI builds are broken HOT 1
- improve query string generation
- rendered JSON type can be wrong for aggregate HOT 2
- datetime filter control helper is too generic HOT 1
- Support different paging method
- Add DateFilter options for "last week", "in past", "in future"
- Prepare for SQLAlchemy 2.0 HOT 1
- Update Column.has_subtotals documentation HOT 1
- Openpyxl type annotations undefined when openpyxl not installed
- smarter filter operators
- FormEncode is breaking HOT 1
- Extremely narrow dropdown for filter operation HOT 1
- Werkzeug 3.0.0 import error HOT 1
- Query args not applied when using get_pyq
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webgrid.