Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Stop file library card metadata wrapping mid-value (#7904)

Anthony Stirling8a1149be76d2
diff --git a/frontend/editor/src/core/components/filesPage/FilesPage.css b/frontend/editor/src/core/components/filesPage/FilesPage.css
index 9703f3b046..777e73bbc5 100644
--- a/frontend/editor/src/core/components/filesPage/FilesPage.css
+++ b/frontend/editor/src/core/components/filesPage/FilesPage.css
@@ -437,29 +437,24 @@
letter-spacing: -0.005em;
}
+/* Values wrap as whole units onto their own lines rather than breaking
+ mid-value ("239.26 / KB") around a stranded separator. */
.files-page-card-meta {
font-size: 0.76rem;
color: var(--c-text-subtle);
display: flex;
- align-items: center;
- gap: 0.4rem;
+ flex-wrap: wrap;
+ align-items: baseline;
+ column-gap: 0.4rem;
+ row-gap: 0.05rem;
}
-/* Narrow cards: let the values wrap as whole units onto their own lines rather
- than breaking mid-value ("239.26 / KB") around a stranded separator. */
-@media (max-width: 64rem) {
- .files-page-card-meta {
- flex-wrap: wrap;
- align-items: baseline;
- column-gap: 0.4rem;
- row-gap: 0.05rem;
- }
- .files-page-card-meta > span {
- white-space: nowrap;
- }
- .files-page-card-meta-sep {
- display: none;
- }
+.files-page-card-meta > span {
+ white-space: nowrap;
+}
+
+.files-page-card-meta-sep {
+ display: none;
}
/* Marks a folder that runs a pipeline over anything added to it. Replaces the