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
16 changes: 15 additions & 1 deletion src/lib/components/tree/ProfileCloudTreeItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
type: string;
name: string;
syncStatus: "synced" | "local" | "cloud";
modifiedAt: Date;
}
</script>

Expand Down Expand Up @@ -71,6 +72,7 @@
{data.name}
</slot>
</span>
<span class="modified-date">{data.modifiedAt.toLocaleDateString()}</span>
<div
class="type-label
{compatible ? 'type-compatible' : 'type-incompatible'}"
Expand Down Expand Up @@ -160,7 +162,7 @@
padding-top: 0.25rem;
padding-bottom: 0.25rem;
display: grid;
grid-template-columns: 1fr auto auto;
grid-template-columns: 1fr auto auto auto;
gap: 0.25rem;
width: 100%;
align-items: center;
Expand Down Expand Up @@ -199,6 +201,18 @@
text-decoration: line-through;
}

.modified-date {
color: var(--foreground-muted);
font-size: 0.75rem;
white-space: nowrap;
}

@media (max-width: 400px) {
.modified-date {
display: none;
}
}

.trigger-container {
margin-right: 0.5rem;
}
Expand Down
8 changes: 8 additions & 0 deletions src/routes/ConfigCardBrowser.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@
{data.type}
</div>
<div class="footer-right" class:footer-right-editor={display === "editor"}>
<span class="modified-date"
>Last modified: {data.modifiedAt.toLocaleDateString()}</span
>
<span class="owner-name">{configOwner}</span>
{#if display == "editor"}
<div class="visibility-container">
Expand Down Expand Up @@ -398,6 +401,11 @@
gap: 0.25rem;
}

.modified-date {
color: var(--foreground-muted);
font-size: 0.75rem;
}

.owner-name {
color: var(--foreground-muted);
}
Expand Down
10 changes: 9 additions & 1 deletion src/routes/ConfigCardDisplay.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@
{#if typeof data !== "undefined"}
<BlockRow>
<div class="created-by">
Created by {configOwner === "" ? "Unknown" : configOwner}
<span>{configOwner === "" ? "Unknown" : configOwner}</span>
<span class="modified-date"
>Last modified: {data.modifiedAt.toLocaleDateString()}</span
>
</div>

{#if data.isEditable}
Expand Down Expand Up @@ -210,6 +213,11 @@
font-size: 0.75rem;
display: flex;
flex-grow: 1;
justify-content: space-between;
}

.modified-date {
color: var(--foreground-muted);
}

.icon-button {
Expand Down