Skip to content

Commit ab5ddc2

Browse files
authored
Merge pull request #2170 from HarshMN2345/fix-SER-175-responsivity-fix
2 parents a306071 + ed16ebd commit ab5ddc2

File tree

1 file changed

+5
-1
lines changed
  • src/routes/(console)/organization-[organization]

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import { canWriteProjects } from '$lib/stores/roles';
2727
import { checkPricingRefAndRedirect } from '$lib/helpers/pricingRedirect';
2828
import { Badge, Icon, Typography, Alert, Tag, Tooltip } from '@appwrite.io/pink-svelte';
29+
import { isSmallViewport } from '$lib/stores/viewport';
2930
import {
3031
IconAndroid,
3132
IconApple,
@@ -129,7 +130,9 @@
129130
}
130131
131132
function formatName(name: string, limit: number = 19) {
132-
return name ? (name.length > limit ? `${name.slice(0, limit)}...` : name) : '-';
133+
const mobileLimit = 16;
134+
const actualLimit = $isSmallViewport ? mobileLimit : limit;
135+
return name ? (name.length > actualLimit ? `${name.slice(0, actualLimit)}...` : name) : '-';
133136
}
134137
135138
$: projectsToArchive = data.projects.projects.filter(
@@ -219,6 +222,7 @@
219222
{#if isSetToArchive(project)}
220223
<Tag
221224
size="s"
225+
style="white-space: nowrap;"
222226
on:click={(event) => {
223227
event.preventDefault();
224228
showSelectProject = true;

0 commit comments

Comments
 (0)