1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-28 09:39:43 +02:00

Adjust label width, update dependencies. Closes #75

This commit is contained in:
Maksim Eltyshev 2021-01-09 18:42:16 +05:00
parent 2b318fdc7a
commit 3d6f9cc0e5
9 changed files with 498 additions and 463 deletions

View file

@ -21,6 +21,7 @@ const Label = React.memo(({ name, color, size, isDisabled, onClick }) => {
title={name}
className={classNames(
styles.wrapper,
!name && styles.wrapperNameless,
styles[`wrapper${upperFirst(size)}`],
onClick && styles.wrapperHoverable,
globalStyles[`background${upperFirst(camelCase(color))}`],

View file

@ -15,7 +15,6 @@
color: #fff;
display: inline-block;
font-weight: 400;
min-width: 40px;
outline: none;
overflow: hidden;
text-overflow: ellipsis;
@ -23,6 +22,10 @@
white-space: nowrap;
}
.wrapperNameless{
width: 40px;
}
.wrapperHoverable:hover {
opacity: 0.75;
}