louislam / dockge

A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager
https://dockge.kuma.pet
MIT License
12.2k stars 351 forks source link

line numbers is not correct when a line is too long #530

Open eslym opened 4 months ago

eslym commented 4 months ago

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

🛡️ Security Policy

Description

line numbers is not correct when a line is too long

👟 Reproduction steps

version: "3.8"
services:
  nginx:
    image: nginx:latest
    restart: unless-stopped
    ports:
      - 8080:80
  environment:
    LONG_VALUE: this is a very long long long long long long long long long long long long long long long long long long long long long long long long long value.
networks: {}

👀 Expected behavior

line number should not be shown when a line is wrap

😓 Actual Behavior

image

Dockge Version

1.4.2

💻 Operating System and Arch

Bebian bookworm (Raspbian OS) arm64

🌐 Browser

Google Chrome 125.0.6422.60

🐋 Docker Version

Docker version 26.1.1, build 4cf5afa

🟩 NodeJS Version

v18.17.1

📝 Relevant log output

No response

Dragi2k commented 1 month ago

got the same bug this is hwo it shoult look

version: '3.3'

services:
  hyperionng:
    image: debian:bullseye
    container_name: hyperionng
    command: bash -c "groupadd -f hyperion || true &&
                    adduser -q --uid ${UID:-1000} --gid ${GID:-1000} --disabled-password --no-create-home hyperion || true &&
                    mkdir -p /config &&
                    chown ${UID:-1000}:${GID:-1000} /config &&
                    apt-get update &&
                    apt-get install -y wget gpg sudo &&
                    wget -qO /tmp/hyperion.pub.key https://apt.hyperion-project.org/hyperion.pub.key &&
                    gpg --dearmor -o - /tmp/hyperion.pub.key > /usr/share/keyrings/hyperion.pub.gpg &&
                    echo \"deb [signed-by=/usr/share/keyrings/hyperion.pub.gpg] https://apt.hyperion-project.org/ bullseye main\" > /etc/apt/sources.list.d/hyperion.list &&
                    apt-get update &&
                    apt-get install -y hyperion &&
                    apt-get clean &&
                    sudo -u hyperion /usr/bin/hyperiond -v --service -u /config"
    ports:
      - "19400:19400"
      - "19444:19444"
      - "19445:19445"
      - "8090:8090"
      - "8092:8092"
    volumes:
      - hyperionng-config:/config
    restart: unless-stopped
volumes:
  hyperionng-config:

and this is what dockge has made of it

version: "3.3"
services:
  hyperionng:
    image: debian:bullseye
    container_name: hyperionng
    command: bash -c "groupadd -f hyperion || true && adduser -q --uid ${UID:-1000}
      --gid ${GID:-1000} --disabled-password --no-create-home hyperion || true
      && mkdir -p /config && chown ${UID:-1000}:${GID:-1000} /config && apt-get
      update && apt-get install -y wget gpg sudo && wget -qO
      /tmp/hyperion.pub.key https://apt.hyperion-project.org/hyperion.pub.key &&
      gpg --dearmor -o - /tmp/hyperion.pub.key >
      /usr/share/keyrings/hyperion.pub.gpg && echo \"deb
      [signed-by=/usr/share/keyrings/hyperion.pub.gpg]
      https://apt.hyperion-project.org/ bullseye main\" >
      /etc/apt/sources.list.d/hyperion.list && apt-get update && apt-get install
      -y hyperion && apt-get clean && sudo -u hyperion /usr/bin/hyperiond -v
      --service -u /config"
    ports:
      - 19400:19400
      - 19444:19444
      - 19445:19445
      - 8090:8090
      - 8092:8092
    volumes:
      - hyperionng-config:/config
    restart: unless-stopped
volumes:
  hyperionng-config: null

and so it is unusable

andrebrait commented 1 month ago

Not only that, but the cursor after the long line is all wrong. It's like it knows what text should be there, but it displays it otherwise.

Cursor position is also wrong, as if the font was smaller or something.

On my phone's screen in portrait mode, at the last line:

Screenshot_20240825_112536_Chrome

Now in landscape mode, same cursor position:

Screenshot_20240825_112547_Chrome

nan0tEch commented 2 weeks ago

just wanted to report this one to, near the end of my compose file it get wierd to edit. The spacing doesn't lineup with the code.