mirror of
https://github.com/mattermost/focalboard.git
synced 2025-02-16 19:47:23 +02:00
[GH-1053] Fix table horizontal lines (#1054)
* Set width to fit content for table header and row container. * Horizontal line for table footer fixed: use div wrapper to make the width of the footer equal to the width of header and rows. Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
This commit is contained in:
parent
9bfdc7b93a
commit
6bf4008199
@ -53,7 +53,7 @@ const Gallery = (props: Props): JSX.Element => {
|
||||
const visibleTitle = activeView.fields.visiblePropertyIds.includes(Constants.titleColumnId)
|
||||
|
||||
return (
|
||||
<div className='octo-table-body Gallery'>
|
||||
<div className='Gallery'>
|
||||
{cards.filter((c) => c.parentId === board.id).map((card) => {
|
||||
return (
|
||||
<GalleryCard
|
||||
|
@ -3,7 +3,10 @@
|
||||
exports[`components/table/Table extended should match snapshot with CreatedBy 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="octo-table-body Table"
|
||||
class="Table"
|
||||
>
|
||||
<div
|
||||
class="octo-table-body"
|
||||
>
|
||||
<div
|
||||
class="octo-table-header"
|
||||
@ -388,12 +391,16 @@ exports[`components/table/Table extended should match snapshot with CreatedBy 1`
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`components/table/Table extended should match snapshot with CreatedBy 2`] = `
|
||||
<div>
|
||||
<div
|
||||
class="octo-table-body Table"
|
||||
class="Table"
|
||||
>
|
||||
<div
|
||||
class="octo-table-body"
|
||||
>
|
||||
<div
|
||||
class="octo-table-header"
|
||||
@ -778,12 +785,16 @@ exports[`components/table/Table extended should match snapshot with CreatedBy 2`
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`components/table/Table extended should match snapshot with UpdatedAt 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="octo-table-body Table"
|
||||
class="Table"
|
||||
>
|
||||
<div
|
||||
class="octo-table-body"
|
||||
>
|
||||
<div
|
||||
class="octo-table-header"
|
||||
@ -1168,12 +1179,16 @@ exports[`components/table/Table extended should match snapshot with UpdatedAt 1`
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`components/table/Table extended should match snapshot with UpdatedBy 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="octo-table-body Table"
|
||||
class="Table"
|
||||
>
|
||||
<div
|
||||
class="octo-table-body"
|
||||
>
|
||||
<div
|
||||
class="octo-table-header"
|
||||
@ -1558,12 +1573,16 @@ exports[`components/table/Table extended should match snapshot with UpdatedBy 1`
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`components/table/Table should match snapshot 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="octo-table-body Table"
|
||||
class="Table"
|
||||
>
|
||||
<div
|
||||
class="octo-table-body"
|
||||
>
|
||||
<div
|
||||
class="octo-table-header"
|
||||
@ -1806,12 +1825,16 @@ exports[`components/table/Table should match snapshot 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`components/table/Table should match snapshot with GroupBy 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="octo-table-body Table"
|
||||
class="Table"
|
||||
>
|
||||
<div
|
||||
class="octo-table-body"
|
||||
>
|
||||
<div
|
||||
class="octo-table-header"
|
||||
@ -2026,12 +2049,16 @@ exports[`components/table/Table should match snapshot with GroupBy 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`components/table/Table should match snapshot, read-only 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="octo-table-body Table"
|
||||
class="Table"
|
||||
>
|
||||
<div
|
||||
class="octo-table-body"
|
||||
>
|
||||
<div
|
||||
class="octo-table-header"
|
||||
@ -2247,4 +2274,5 @@ exports[`components/table/Table should match snapshot, read-only 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
@ -1,5 +1,9 @@
|
||||
.Table {
|
||||
margin-top: 16px;
|
||||
padding-bottom: 0 !important;
|
||||
overflow: auto;
|
||||
position: relative;
|
||||
flex: 1;
|
||||
|
||||
.octo-group-header-cell {
|
||||
display: flex;
|
||||
@ -124,7 +128,6 @@
|
||||
|
||||
.Editable {
|
||||
padding: 0 5px;
|
||||
display: relative;
|
||||
left: -5px;
|
||||
}
|
||||
|
||||
@ -150,13 +153,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.octo-table-body {
|
||||
margin-top: 16px;
|
||||
.octo-table-body {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
overflow: auto;
|
||||
position: relative;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.octo-table-header,
|
||||
@ -175,6 +175,7 @@
|
||||
top: -2px;
|
||||
z-index: 1;
|
||||
background: rgb(var(--center-channel-bg-rgb));
|
||||
width: fit-content;
|
||||
|
||||
.octo-table-cell {
|
||||
color: rgba(var(--center-channel-color-rgb), 0.6);
|
||||
@ -186,13 +187,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
.table-row-container {
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.octo-table-footer {
|
||||
.octo-table-cell {
|
||||
color: rgba(var(--center-channel-color-rgb), 0.6);
|
||||
cursor: pointer;
|
||||
|
||||
width: 100%;
|
||||
border-right: none;
|
||||
padding-left: 15px;
|
||||
|
||||
&:hover {
|
||||
|
@ -273,11 +273,11 @@ const Table = (props: Props): JSX.Element => {
|
||||
|
||||
return (
|
||||
<div
|
||||
className='octo-table-body Table'
|
||||
className='Table'
|
||||
ref={drop}
|
||||
>
|
||||
<div className='octo-table-body'>
|
||||
{/* Headers */}
|
||||
|
||||
<div
|
||||
className='octo-table-header'
|
||||
id='mainBoardHeader'
|
||||
@ -399,6 +399,7 @@ const Table = (props: Props): JSX.Element => {
|
||||
offset={offset}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user