roda
roda copied to clipboard
Table headings for jobs are wrongly spaced
Either they are preservation or internal actions, or even ingest. Even more, in pt_PT, the last column text is being partially hidden by the facets component.
After myself & @chalkos analyze the way cell widths are defined, which in my opinion is not the best way & makes things like the ones this issue mention happening (using EM to define widths), I've decided to postpone & wait for @luis100 to analyze & decide how to solve this issue properly.
Well, this is more difficult than expected to fix for all screen sizes because of the way tables are designed (in GWT)...
These are the width rules:
- If the widths of all columns are set, the width becomes a weight and the columns are resized proportionally.
- If the widths of some columns are set using absolute values (PX), those columns are fixed and the remaining width is divided evenly over the other columns. If there is no remaining width, the other columns will not be visible.
- If the width of some columns are set in absolute values (PX) and others are set in relative values (PCT), the absolute columns will be fixed and the remaining width is divided proportionally over the PCT columns. This allows users to define how the remaining width is allocated.
From GWT's CellTable#setTableLayoutFixed
Setting a column's CSS class to include a min-width property (to make sure the name column is shown on small screens) has no effect.
Some searching reveals that the standard options work for most GWT projects and those who need something extra (like RODA does) reimplement/copy the (sometimes private) methods from CellTable. this is probably what we will end up doing in the future when changing RODA UI to be fully responsive.