Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap project names with underscores #3667

Merged
merged 1 commit into from
Dec 8, 2023
Merged
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
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
Loading