minor folders ui fixes

folders
gabrielburnworth 2019-12-19 18:03:31 -08:00
parent 209b355481
commit 4b12828262
2 changed files with 12 additions and 12 deletions

View File

@ -230,6 +230,14 @@
}
.folders-panel {
height: calc(100vh - 15rem);
overflow-y: auto;
overflow-x: hidden;
margin-left: -30px;
margin-right: -20px;
@media screen and (max-width: 767px) {
margin-left: -15px;
}
.panel-top,
.folder-button-cluster {
i {
@ -250,15 +258,6 @@
text-align: center;
}
}
.non-empty-state {
margin-left: -30px;
margin-right: -20px;
}
@media screen and (max-width: 767px) {
.non-empty-state {
margin-left: -15px;
}
}
.folder-button-cluster {
display: flex;
i {

View File

@ -120,17 +120,18 @@ const FolderNameEditor = (props: FolderNodeProps) => {
const { node } = props;
const moveModeTarget = props.movedSequenceUuid ? "move-target" : "";
const nodeName = moveModeTarget ? t("CLICK TO MOVE HERE") : node.name;
const onClick = moveModeTarget ? () => props.onMoveEnd(node.id) : () => { };
const onClick = () => moveModeTarget ? props.onMoveEnd(node.id) : undefined;
const toggle = () => moveModeTarget ? undefined : toggleFolderOpenState(node.id);
return <div className={`folder-list-item ${moveModeTarget}`}
onClick={onClick}>
<i className={`fa fa-chevron-${node.open ? "down" : "right"}`}
title={"Open/Close Folder"}
onClick={() => toggleFolderOpenState(node.id)} />
onClick={toggle} />
<ColorPicker
saucerIcon={"fa-folder"}
current={node.color}
onChange={color => setFolderColor(node.id, color)} />
<div className="folder-name" onClick={() => toggleFolderOpenState(node.id)}>
<div className="folder-name" onClick={toggle}>
{node.editing
? <BlurableInput value={nodeName} onCommit={e =>
setFolderName(node.id, e.currentTarget.value)