Fixes pagination bug in view-folder, fixes edge case where excessively long filenames could move submit button off page in add-file.