Skip to content

Commit

Permalink
added new timesheet rules for improved UX on small screens (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst authored Apr 29, 2019
1 parent 36585d3 commit 5fb463d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

## 0.4

- Added new rules:
- `timesheet` / `responsive-timesheet`
- `timesheet` / `wrap-label-timesheet`
- Styling update in admin screen

Compatible with Kimai 0.9
7 changes: 7 additions & 0 deletions Resources/ruleset/timesheet/responsive.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* this allows horizontal scrolling on the timesheet tables on small screens or for
entries with long names for customer/project/activity or descriptions */
#datatable_timesheet_admin .dataTables_wrapper,
#datatable_timesheet .dataTables_wrapper {
overflow-x: auto;
min-height: .01%;
}
8 changes: 8 additions & 0 deletions Resources/ruleset/timesheet/wrap-label.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* this rule allows that the labels for customer/project/activity in the timesheet tables wrap (line-break)
and do not take up too much horizontal space on small screens (or on very long titles) */
#datatable_timesheet_admin table.dataTable td .label,
#datatable_timesheet table.dataTable td .label {
white-space: pre-wrap;
line-height: 2;
padding: .3em .3em;
}

0 comments on commit 5fb463d

Please sign in to comment.