Skip to content

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

Keep the file list Modified column on one line (#7905)

Anthony Stirlingb9f342d89efa
diff --git a/frontend/editor/src/core/components/filesPage/FilesPage.css b/frontend/editor/src/core/components/filesPage/FilesPage.css
index 777e73bbc5..156cafb913 100644
--- a/frontend/editor/src/core/components/filesPage/FilesPage.css
+++ b/frontend/editor/src/core/components/filesPage/FilesPage.css
@@ -280,7 +280,9 @@
.files-page-list-row {
display: grid;
- grid-template-columns: 2.25rem minmax(0, 3fr) 1fr 1fr 1fr 2.5rem;
+ grid-template-columns:
+ 2.25rem minmax(0, 3fr) minmax(3.5rem, 1fr) minmax(4.5rem, 1fr)
+ minmax(max-content, 1.5fr) 2.5rem;
gap: 0.5rem;
align-items: center;
/* Same offscreen skip as .files-page-card. */
@@ -1517,7 +1519,10 @@
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
gap: 0.5rem;
}
- /* List view at tiny widths becomes cramped - drop the size + type + modified
+}
+
+@media (max-width: 560px) {
+ /* List view at narrow widths becomes cramped - drop the size + type + modified
columns and let name + actions take the room. */
.files-page-list-row {
grid-template-columns: 1.75rem minmax(0, 1fr) 2rem;