Skip to content

Commit ed16ebd

Browse files
committed
added settoarchive check back and chnage character limit to 16
1 parent 142e3c0 commit ed16ebd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • src/routes/(console)/organization-[organization]

src/routes/(console)/organization-[organization]/+page.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
}
131131
132132
function formatName(name: string, limit: number = 19) {
133-
const mobileLimit = 12;
133+
const mobileLimit = 16;
134134
const actualLimit = $isSmallViewport ? mobileLimit : limit;
135135
return name ? (name.length > actualLimit ? `${name.slice(0, actualLimit)}...` : name) : '-';
136136
}
@@ -198,7 +198,9 @@
198198
{@const platforms = filterPlatforms(
199199
project.platforms.map((platform) => getPlatformInfo(platform.type))
200200
)}
201-
{@const formatted = formatName(project.name)}
201+
{@const formatted = isSetToArchive(project)
202+
? formatName(project.name)
203+
: project.name}
202204
<GridItem1
203205
href={`${base}/project-${project.region}-${project.$id}/overview/platforms`}>
204206
<svelte:fragment slot="eyebrow">

0 commit comments

Comments
 (0)