Skip to content

Commit

Permalink
chore: remove title expand toggle (#17887)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Oct 23, 2023
1 parent 198011a commit 1da9e8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
6 changes: 3 additions & 3 deletions frontend/src/scenes/notebooks/Nodes/NodeWrapper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.75rem;
font-weight: 700;
color: var(--muted-alt-3000);
font-size: 0.875rem;
font-weight: 500;
color: var(--primary-alt);
padding: var(--notebook-node-meta-padding);
border-bottom: 1px solid var(--border);
height: var(--notebook-node-meta-height);
Expand Down
19 changes: 6 additions & 13 deletions frontend/src/scenes/notebooks/Nodes/NodeWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,19 +172,12 @@ function NodeWrapper<T extends CustomNotebookNodeAttributes>(
) : (
<>
<div className="NotebookNode__meta" data-drag-handle>
<LemonButton
onClick={() => setExpanded(!expanded)}
size="small"
status="primary-alt"
className="flex-1"
icon={
isEditable ? (
<IconDragHandle className="cursor-move text-base shrink-0" />
) : undefined
}
>
<span className="flex-1 cursor-pointer">{title}</span>
</LemonButton>
<div className="flex items-center gap-1">
{isEditable && (
<IconDragHandle className="cursor-move text-base shrink-0" />
)}
<span>{title}</span>
</div>

<div className="flex space-x-1">
{parsedHref && (
Expand Down

0 comments on commit 1da9e8b

Please sign in to comment.