Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[web] Ensure ellipsizing of caption

Manav Rathi3cef3e9bdcad
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.css
index 919011e56d..88e6771479 100644
--- a/web/apps/photos/src/styles/photoswipe.css
+++ b/web/apps/photos/src/styles/photoswipe.css
@@ -155,19 +155,19 @@
bottom: 0px;
right: 0;
margin: 20px 24px;
- padding-inline: 16px;
border-radius: 3px;
/* Same opacity as the other controls. */
color: rgb(255 255 255 / 0.85);
background-color: rgb(0 0 0 / 0.2);
backdrop-filter: blur(10px);
- text-align: right;
max-width: 375px;
max-height: 200px;
p {
+ margin: 12px 17px;
/* 4 lines max, ellipsis on overflow. */
word-break: break-word;
overflow: hidden;
+ text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;