text icon indicating copy to clipboard operation
text copied to clipboard

Text Editor width toggle missing for plain text files since Nextcloud Hub 25 Autumn (32.0.0)

Open surfrock66 opened this issue 3 months ago • 3 comments

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:

  1. Go to 'Files' and navigate to a text file
  2. Click on the file to open it
  3. See error

Expected behavior The text editor would take up more of the screen, or be adjustable

Image

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:

Image Image Image

surfrock66 avatar Oct 09 '25 19:10 surfrock66

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.

max-nextcloud avatar Oct 10 '25 07:10 max-nextcloud

Since we do not have the toolbar for plaintext files I suggest we put the full width toggle next to the save indicator.

Image

Also noticed the drag handle is showing in plaintext files which is another regression.

max-nextcloud avatar Oct 10 '25 07:10 max-nextcloud

WidthFull and WidthNormal seem like a good choice for icons:

Image

max-nextcloud avatar Oct 10 '25 07:10 max-nextcloud