Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve console layout width, avoid unnecessary new lines #223

Closed
2 tasks done
Trainax opened this issue Dec 2, 2023 · 6 comments
Closed
2 tasks done

Improve console layout width, avoid unnecessary new lines #223

Trainax opened this issue Dec 2, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Trainax
Copy link
Contributor
Trainax commented Dec 2, 2023

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

When executing some commands (like docker ps) in the console the width is not correctly optimized and unnecessary new lines are inserted in the output.

Example:

immagine

Here we can see STATUS, PORTS and NAMES being on a new line

👟 Reproduction steps

  1. Open the console in Dockge
  2. Launch a command which prints some long lines (like docker ps)
  3. Observe the output containing unnecessary new lines

👀 Expected behavior

I would like the output to be like it is in the console via SSH, like this:

immagine

😓 Actual Behavior

Unnecessary new lines are inserted even if there is enough space on the right in the console in Dockge

Dockge Version

1.3.3

💻 Operating System and Arch

Debian 12 x64

🌐 Browser

Mozilla Firefox version 120.0.1

🐋 Docker Version

Docker version 24.0.7, build afdd53b

🟩 NodeJS Version

No response

📝 Relevant log output

No response

@Trainax Trainax added the bug Something isn't working label Dec 2, 2023
@Trainax
Copy link
Contributor Author
Trainax commented Dec 4, 2023

This behavior can also be observed in the terminal of the page dedicated to the single container where the line ends prematurely

immagine

@Kareltje1980
Copy link

Loving the project, but I think this could be improved.

@Ozy-Viking
Copy link
Contributor

It seems to be fixed to 488px, most likely a setting in xtermjs.

@Ozy-Viking
Copy link
Contributor

I have created a pr #285 that solves it for each load of the screen but doesn't listen for the "resize" event. Added a todo for that in the jsdocs.

@Jadan1213
Copy link

I would love if it was also possible for the UI to allow editing the compose.yml in a fullscreen/widescreen format instead of being scrunched to the side. It would make it a lot easier to read when there's a lot in the file.

@louislam
Copy link
Owner

Fixed by #285

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants