Skip to content

Commit

Permalink
Wrap project names with underscores (#3667)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpgreen2 authored Dec 8, 2023
1 parent 8e89646 commit 6f65124
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion web-admin/src/features/projects/ProjectCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
// Check whether project is public or private
$: proj = createAdminServiceGetProject(organization, project);
function doesProjectNameIncludeUnderscores(project: string) {
return project.includes("_");
}
</script>

{#if $proj.data}
Expand All @@ -22,7 +26,13 @@
bgClasses="bg-gradient-to-b from-white to-slate-50"
>
<!-- Project name -->
<h2 class="text-gray-700 font-medium text-lg break-words text-center px-4">
<h2
class="text-gray-700 font-medium text-lg text-center px-4 {doesProjectNameIncludeUnderscores(
project
)
? 'break-all'
: 'break-words'}"
>
{project}
</h2>
<!-- Permissions tag -->
Expand Down

1 comment on commit 6f65124

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.