Merge pull request #2170 from HarshMN2345/fix-SER-175-responsivity-fix

This commit is contained in:
Darshan
2025-07-31 19:09:05 +05:30
committed by GitHub
@@ -26,6 +26,7 @@
import { canWriteProjects } from '$lib/stores/roles';
import { checkPricingRefAndRedirect } from '$lib/helpers/pricingRedirect';
import { Badge, Icon, Typography, Alert, Tag, Tooltip } from '@appwrite.io/pink-svelte';
import { isSmallViewport } from '$lib/stores/viewport';
import {
IconAndroid,
IconApple,
@@ -129,7 +130,9 @@
}
function formatName(name: string, limit: number = 19) {
return name ? (name.length > limit ? `${name.slice(0, limit)}...` : name) : '-';
const mobileLimit = 16;
const actualLimit = $isSmallViewport ? mobileLimit : limit;
return name ? (name.length > actualLimit ? `${name.slice(0, actualLimit)}...` : name) : '-';
}
$: projectsToArchive = data.projects.projects.filter(
@@ -219,6 +222,7 @@
{#if isSetToArchive(project)}
<Tag
size="s"
style="white-space: nowrap;"
on:click={(event) => {
event.preventDefault();
showSelectProject = true;