Skip to content

Publicly shared .md files: Outline has no background on mobile #6693

Closed

Description

@Turbulentarius

Describe the bug
Outline has no background, which results in unreadable overlapping text on mobile for .md notes that are shared publicly. The links in the document outline simply overlaps the text in the .md file.

To Reproduce
Steps to reproduce the behavior:

  • Open any shared note externally on mobile.
  • Open any shared note on a browser and resize the window

Expected behavior
I assume the text should have a background, and at least some basic styling to make it look "not broken".

The following is a quick and dirty fix I applied in a custom app, because even the use of white space was quite ugly:

.editor-media-handler .text-editor--readonly-bar .text-readonly-bar {
  background-color: var(--color-main-background);
  padding:0.5rem 0;
}
.text-editor__content-wrapper .text-editor__content-wrapper__left .editor--outline {
  min-width: 300px;
  width: auto; /* This is still not enough to show whole text lines */
  margin:0 auto;
  background-color: var(--color-main-background);
  padding: 0;
  margin: 0 0.5rem;
  border-radius: 0.5rem;
  z-index: 900;
  border:1px solid var(--vs-border-color);
}
.editor--toc {
  padding:0 0.5rem;
}
.editor--outline li {
  padding: 0.25rem 0;
}
.text-editor__session-list .session-list .avatar-list .avatar-wrapper {
  margin: 0.2rem 0.1rem 0;
  width: 1.5rem;
  height: 1.5rem;
}

Activity

  1. mejo- commented on Dec 3, 2024

    @mejo-
    Member

    Thanks for your report. I was able to reproduce, a fix is incoming.

  2. self-assigned this
    on Dec 3, 2024
  3. moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity teamon Dec 3, 2024
  4. moved this from 🧭 Planning evaluation (don't pick) to 🏗️ In progress in 📝 Productivity teamon Dec 3, 2024
  5. added 2 commits that reference this issue on Dec 3, 2024
    48a1154
    b589424
  6. moved this from 🏗️ In progress to ☑️ Done in 📝 Productivity teamon Dec 5, 2024
  7. added 2 commits that reference this issue on Dec 5, 2024
    b7427bc
    64c4371
  8. added a commit that references this issue on Dec 10, 2024
    2245857
  9. added 3 commits that reference this issue on Dec 12, 2024
    01a83d3
    beaf14d
    e67f0db
  10. added a commit that references this issue on Dec 17, 2024
    22c822d
  11. grnd-alt commented on Jul 14, 2025

    @grnd-alt
    Member

    we have an issue reported in deck, of the same behavior still occuring: nextcloud/deck#7082
    I could also reproduce outside of deck in files app on c.nc.c using firefox mobile-view thing.

    Don't really know how the isMobile mixin works in text but could it be that it's not based on the actual width of the text editor but maybe entire device width? I think deck is the only place where text is not almost the entire width, so that might be the cause.

  12. added 9 commits that reference this issue on Dec 11, 2025
    e99856d
    cebf9b2
    fcebfbe
    553778e
    f7c7b9a
    85177fd
    099790b
    61a3d30
    f0cb31f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions