Text Editor width toggle missing for plain text files since Nextcloud Hub 25 Autumn (32.0.0)
Describe the bug Since upgrading to Nextcloud Hub 25 Autumn (32.0.0) the width of the text editor is too narrow, taking up 1/3 of the screen
To Reproduce Steps to reproduce the behavior:
- Go to 'Files' and navigate to a text file
- Click on the file to open it
- See error
Expected behavior The text editor would take up more of the screen, or be adjustable
Server details:
- Nextcloud version: Nextcloud Hub 25 Autumn (32.0.0)
- PHP Version: PHP 8.3.26 (cli) (built: Oct 1 2025 20:35:14) (NTS)
- Database: mysql Ver 8.0.43-0ubuntu0.24.04.2 for Linux on x86_64 ((Ubuntu))
Client details:
- Windows 11 on Chrome 141.0.7390.55
- Firefox 143.0.4 on Ubuntu Mate 24.04
Specific details of the div which is not expanding; the width is locked to 766.875px, inheriting from ".editor__content". The "max-width" rule is the issue; if I disable it in dev tools, the page renders as expected:
Closed too early. There was a similar issue created by the latest version of the collectives app. But this is a regression from moving the width toggle into the toolbar which is only rendered for markdown documents.
Thanks for the headsup @surfrock66 - we're looking into it.
Since we do not have the toolbar for plaintext files I suggest we put the full width toggle next to the save indicator.
Also noticed the drag handle is showing in plaintext files which is another regression.
WidthFull and WidthNormal seem like a good choice for icons: