Merge pull request #1747 from appwrite/fix-overflow

Fix: content overflown on previews
This commit is contained in:
Eldad A. Fux
2025-03-17 10:20:52 +01:00
committed by GitHub
2 changed files with 16 additions and 1 deletions
@@ -18,7 +18,7 @@
</div>
<div>
<p class="body-text-1 u-small u-bold">{title || 'Message Title'}</p>
<p class="body-text-2 u-x-small">
<p class="notification-bubble body-text-2 u-x-small">
{body || 'Enter your message in the input field on the left to see it here'}
</p>
</div>
@@ -49,6 +49,15 @@
}
}
.notification-bubble {
overflow: hidden;
display: -webkit-box;
line-clamp: 4;
word-break: break-word;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
}
:global(.theme-dark) .phone {
background-image: url('./push-notification-preview-dark.svg');
@@ -92,6 +92,12 @@
padding-block: 7px;
margin-inline-start: 6px;
margin-inline-end: 33px;
overflow: hidden;
display: -webkit-box;
word-break: break-word;
line-clamp: 4;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
}
}
}