diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss
index 08f0ac1bcf288be49ac0e6b9aaa4f79bd51b00f2..f93107fef843ec9ef0dcd3042f2aac59b4820fcf 100644
--- a/apps/files/css/files.scss
+++ b/apps/files/css/files.scss
@@ -59,6 +59,9 @@
 
 .app-files #app-content {
 	transition: background-color 0.3s ease;
+	// force  the width to be the full width to not go bigger than the screen
+	// flex will grow for the mobile view if necessary
+	width: calc(100% - 300px);
 }
 
 .file-drag, .file-drag #filestable tbody tr, .file-drag #filestable tbody tr:hover {