mirror of
https://github.com/wekan/wekan.git
synced 2026-11-08 11:25:19 -05:00
Move the board Status from a Board Settings sidebar popup into a full-width board VIEW alongside Swimlanes / Lists / Calendar / Gantt / Table in the board-view switcher. Named 'Statistics' (Finnish 'Tilastot'), translated to major languages (rest fall back to English). New statsView template/js/css rendered from boardBody (isViewStats), selectable via the switcher (js-open-stats-view -> board-view-stats, added to the profile.boardView schema allowedValues). Reuses the server boardStatus method so counts are accurate in lazy mode; shows the same counts + time-spent summary as before. Text is selectable with mouse (drag) and touch (long-press): the view stops pointer/touch events from reaching the canvas drag-to-scroll so native selection + copy work. Removed the old boardStatusPopup (template/handler/helpers/css) and its Board menu item. Added a Playwright test for the view. Design doc updated.
56 lines
962 B
CSS
56 lines
962 B
CSS
/* Board "Statistics" view — full width, like the other board views. Its text is
|
|
selectable so any value can be highlighted and copied. */
|
|
.stats-view {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
user-select: text;
|
|
-webkit-user-select: text;
|
|
}
|
|
|
|
.stats-view-content {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.stats-view-title {
|
|
margin: 0 0 16px;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.stats-view-section {
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.stats-view-heading {
|
|
margin: 0 0 8px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
border-bottom: 2px solid #dbdbdb;
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.stats-view-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.stats-view-table td {
|
|
padding: 8px 4px;
|
|
border-bottom: 1px solid #eee;
|
|
user-select: text;
|
|
-webkit-user-select: text;
|
|
}
|
|
|
|
.stats-view-table .stats-view-label {
|
|
color: #666;
|
|
width: 60%;
|
|
}
|
|
|
|
.stats-view-table .stats-view-value {
|
|
font-weight: bold;
|
|
text-align: right;
|
|
}
|