Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 30 additions & 12 deletions src/lib/components/tree/ConfigTree.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,14 @@
)}
/>
</div>
<IconButton
onMouseDown={(e) => e.preventDefault()}
onClick={cancelRenameFolder}
iconPath="close"
tooltipText="Cancel"
/>
<div class="rename-cancel">
<IconButton
onMouseDown={(e) => e.preventDefault()}
onClick={cancelRenameFolder}
iconPath="close"
tooltipText="Cancel"
/>
</div>
</div>
{#if renameFolderError}
<p class="rename-error">{renameFolderError}</p>
Expand Down Expand Up @@ -652,12 +654,14 @@
)}
/>
</div>
<IconButton
onMouseDown={(e) => e.preventDefault()}
onClick={cancelRename}
iconPath="close"
tooltipText="Cancel"
/>
<div class="rename-cancel">
<IconButton
onMouseDown={(e) => e.preventDefault()}
onClick={cancelRename}
iconPath="close"
tooltipText="Cancel"
/>
</div>
</svelte:fragment>
</ProfileCloudTreeItem>
{#if isRenaming && renameError}
Expand All @@ -680,6 +684,20 @@
min-width: 0;
}

/* MoltenInput's <input> doesn't set box-sizing, so width:100% adds its own
padding/border on top of that. Profile Cloud's standalone pages hide this
via a global box-sizing reset, but that reset isn't present when this app
is embedded as the profile-cloud-web-component (shadow:none, no app.css),
so without this the input overflows its flex row and pushes the cancel
button onto its own line in narrow/deeply-nested rows. */
.rename-input :global(input) {
box-sizing: border-box;
}

.rename-cancel {
flex-shrink: 0;
}

.rename-error {
color: var(--error);
font-size: 0.75rem;
Expand Down
3 changes: 2 additions & 1 deletion src/lib/components/tree/ProfileCloudTreeItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
align-items: center;
width: 100%;
border-width: 1px;
height: 33px;
min-height: 2em;
padding: 0;
background-color: transparent;
}
Expand Down Expand Up @@ -204,6 +204,7 @@
.edit-content {
grid-column: 1 / span 3;
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 0.5rem;
min-width: 0;
Expand Down
Loading