mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Keep the flat table as the default and let each user persist an optional grouped mode. Group cards in board swimlane order, preserve the selected column sort inside each lane, and insert section rows after pagination so headers never consume card slots. Add user-isolation, empty-state, section-boundary and browser persistence coverage. Thanks to rmb82 and xet7 ! Fixes #6634,
206 lines
4.7 KiB
CSS
206 lines
4.7 KiB
CSS
/* Board Table view: search + pagination controls, styled to match the
|
|
Admin Panel / People page (see client/components/settings/peopleBody.css).
|
|
The table itself reuses the My Cards table styling (.my-cards-board-table). */
|
|
|
|
.table-view-controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin: 9px 0;
|
|
}
|
|
|
|
.table-view-search-box {
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 34px;
|
|
}
|
|
|
|
.table-view-search-box input {
|
|
border: 1px solid #ccc;
|
|
border-radius: 6px;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.table-view-search-box button {
|
|
min-width: 90px;
|
|
margin-inline-start: 6px;
|
|
background: #01628c;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.table-view-search-box button:hover {
|
|
background: #005377;
|
|
}
|
|
|
|
.table-view-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.table-view-pagination button {
|
|
min-width: 32px;
|
|
height: 30px;
|
|
border: 1px solid #bbb;
|
|
background: #fff;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.table-view-pagination button.disabled {
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.table-view-page-info {
|
|
min-width: 72px;
|
|
text-align: center;
|
|
color: #333;
|
|
}
|
|
|
|
.table-view-controls .js-table-view-toggle-card-title-wrap,
|
|
.table-view-controls .js-table-view-toggle-swimlane-groups {
|
|
width: 34px;
|
|
height: 30px;
|
|
border: 1px solid #bbb;
|
|
background: #fff;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.table-view-controls .js-table-view-toggle-card-title-wrap.active,
|
|
.table-view-controls .js-table-view-toggle-swimlane-groups.active {
|
|
background: #01628c;
|
|
color: #fff;
|
|
}
|
|
|
|
.my-cards-board-table tr.table-view-swimlane-group {
|
|
border-bottom: 0;
|
|
background: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.my-cards-board-table tr.table-view-swimlane-group th {
|
|
padding: 8px 10px;
|
|
text-align: start;
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
/* Consume the width the board view actually has. Column percentages are
|
|
preferences, not caps: optional date/member columns may still claim the room
|
|
their content needs. */
|
|
.my-cards-board-table.table-view-table {
|
|
width: 100%;
|
|
max-width: none;
|
|
table-layout: auto;
|
|
}
|
|
|
|
.table-view-table th .js-table-view-sort {
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-weight: bold;
|
|
padding: 6px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.table-view-table th .js-table-view-sort .fa {
|
|
margin-inline-start: 5px;
|
|
}
|
|
|
|
/* Leftmost "Edit" cell: an Edit link (pencil icon + text) styled like the one
|
|
on the Admin Panel / People page, opening the card when clicked. */
|
|
.my-cards-board-table td.table-view-cell-edit {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.my-cards-board-table td.table-view-cell-edit .edit-card {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.my-cards-board-table td.table-view-cell-edit .edit-card i.fa {
|
|
margin-inline-end: 4px;
|
|
}
|
|
|
|
/* List and swimlane text may wrap, but no longer impose a fixed 250px ceiling
|
|
on a wide browser. */
|
|
.my-cards-board-table td.table-view-cell-wrap {
|
|
white-space: normal;
|
|
overflow-wrap: break-word;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.my-cards-board-table td.table-view-cell-card-title {
|
|
width: 40%;
|
|
}
|
|
|
|
.my-cards-board-table td.table-view-cell-card-title .my-cards-card-title-table {
|
|
max-width: none;
|
|
min-width: 0;
|
|
}
|
|
|
|
.my-cards-board-table.table-view-ellipsis-card-titles
|
|
td.table-view-cell-card-title {
|
|
max-width: 0;
|
|
}
|
|
|
|
.my-cards-board-table.table-view-ellipsis-card-titles
|
|
td.table-view-cell-card-title .viewer,
|
|
.my-cards-board-table.table-view-ellipsis-card-titles
|
|
td.table-view-cell-card-title .viewer p {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* The +viewer template wraps its markdown in a block-level .viewer div. Inside
|
|
a table cell it should not add extra vertical margins, and inside a label it
|
|
must stay inline so the label keeps its pill shape. */
|
|
.my-cards-board-table .viewer {
|
|
margin: 0;
|
|
}
|
|
|
|
.my-cards-board-table .viewer p {
|
|
margin: 0;
|
|
}
|
|
|
|
.my-cards-board-table .card-label .viewer,
|
|
.my-cards-board-table .card-label .viewer p {
|
|
display: inline;
|
|
}
|
|
|
|
/* Word-wrap the Labels cell so each label pill wraps onto the next line instead
|
|
of stretching the column or overflowing across the date columns. */
|
|
.my-cards-board-table td.table-view-cell-labels {
|
|
max-width: 250px;
|
|
}
|
|
|
|
.my-cards-board-table td.table-view-cell-labels .div {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
|
|
.my-cards-board-table td.table-view-cell-labels .card-label {
|
|
white-space: normal;
|
|
overflow-wrap: break-word;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Keep each date in a single column; the clickable badge already styles itself
|
|
like the card detail / Gantt date badges. */
|
|
.my-cards-board-table td.table-view-cell-date {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.my-cards-board-table td.table-view-cell-date .card-date {
|
|
cursor: pointer;
|
|
}
|