mirror of
https://github.com/plankanban/planka.git
synced 2025-12-24 09:15:01 +03:00
Adjust label width, update dependencies. Closes #75
This commit is contained in:
@@ -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))}`],
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user