nextcloud / nextcloud/text

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

Open
#7,751 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug regression
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by opening a plain text file from Files, then inspect the .editor__content styling and its max-width rule in the text editor. The fix is complete when the editor uses more of the available screen or can be adjusted, without narrowing plain text files in the reported browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.