mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-18 15:08:22 +00:00
Add metadata kanban collapsed tip (#7628)
* 01 change tip color to # 666 * 02 show tips when Kanban is collapsed * 03 fix warning
This commit is contained in:
parent
63c3b36b80
commit
0b698bf13c
@ -46,7 +46,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.old-history-main p {
|
.old-history-main p {
|
||||||
color: #808080;
|
color: #666;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
@ -113,7 +113,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tip {
|
.tip {
|
||||||
color: #808080;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-details-container {
|
.file-details-container {
|
||||||
|
@ -117,7 +117,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tip {
|
.tip {
|
||||||
color: #808080;
|
color: #666;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ import { CellType } from '../../../../../constants';
|
|||||||
import './index.css';
|
import './index.css';
|
||||||
|
|
||||||
const Header = ({ readonly, haveFreezed, value, groupByColumn, cardsQuantity, onDelete, onFreezed, onUnFreezed, isCollapsed, onCollapse }) => {
|
const Header = ({ readonly, haveFreezed, value, groupByColumn, cardsQuantity, onDelete, onFreezed, onUnFreezed, isCollapsed, onCollapse }) => {
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
const [active, setActive] = useState(false);
|
const [active, setActive] = useState(false);
|
||||||
|
|
||||||
const headerRef = useRef();
|
const headerRef = useRef();
|
||||||
@ -53,16 +54,14 @@ const Header = ({ readonly, haveFreezed, value, groupByColumn, cardsQuantity, on
|
|||||||
)}
|
)}
|
||||||
<span className="cards-quantity">{cardsQuantity}</span>
|
<span className="cards-quantity">{cardsQuantity}</span>
|
||||||
</div>
|
</div>
|
||||||
{active && (
|
<div className="board-header-operation-btn">
|
||||||
<div className="board-header-operation-btn">
|
{value && !readonly && <OpMenu onDelete={onDelete} onFreezed={onFreezed} onUnFreezed={handelUnFreezed} />}
|
||||||
{value && !readonly && <OpMenu onDelete={onDelete} onFreezed={onFreezed} onUnFreezed={handelUnFreezed} />}
|
<i
|
||||||
<i
|
className={classNames('sf3-font sf3-font-down kanban-header-op-btn kanban-header-collapse-btn', { 'rotate-90': isCollapsed })}
|
||||||
className={classNames('sf3-font sf3-font-down kanban-header-op-btn kanban-header-collapse-btn', { 'rotate-90': isCollapsed })}
|
title={isCollapsed ? gettext('Expand') : gettext('Collapse')}
|
||||||
title={isCollapsed ? gettext('Expand') : gettext('Collapse')}
|
onClick={handleCollapse}>
|
||||||
onClick={handleCollapse}>
|
</i>
|
||||||
</i>
|
</div>
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -7,6 +7,7 @@ import Draggable from '../../dnd/draggable';
|
|||||||
import { useMetadataView } from '../../../../hooks/metadata-view';
|
import { useMetadataView } from '../../../../hooks/metadata-view';
|
||||||
import { getRowById } from '../../../../../components/sf-table/utils/table';
|
import { getRowById } from '../../../../../components/sf-table/utils/table';
|
||||||
import { getRecordIdFromRecord } from '../../../../utils/cell';
|
import { getRecordIdFromRecord } from '../../../../utils/cell';
|
||||||
|
import { gettext } from '@/utils/constants';
|
||||||
|
|
||||||
import './index.css';
|
import './index.css';
|
||||||
|
|
||||||
@ -73,7 +74,9 @@ const Board = ({
|
|||||||
isCollapsed={isCollapsed}
|
isCollapsed={isCollapsed}
|
||||||
onCollapse={onCollapse}
|
onCollapse={onCollapse}
|
||||||
/>
|
/>
|
||||||
{!isCollapsed && (
|
{isCollapsed ?
|
||||||
|
<div className="tip m-2">{gettext('This list is collapsed')}</div>
|
||||||
|
:
|
||||||
<Container
|
<Container
|
||||||
className='react-trello-board'
|
className='react-trello-board'
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
@ -124,7 +127,7 @@ const Board = ({
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</Container>
|
</Container>
|
||||||
)}
|
}
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -735,7 +735,7 @@ table img {
|
|||||||
|
|
||||||
/* highlight */
|
/* highlight */
|
||||||
.tip {
|
.tip {
|
||||||
color: #808080;
|
color: #666;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1342,7 +1342,7 @@ a.table-sort-op:hover {
|
|||||||
margin: 2rem auto;
|
margin: 2rem auto;
|
||||||
padding: 30px 40px;
|
padding: 30px 40px;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: #808080;
|
color: #666;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user