Changeset 62dea30 in Klonkt


Ignore:
Timestamp:
06/24/2026 05:38:34 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
6bee3ec
Parents:
848b76d
Message:

editor: remove the 'Start writing…' placeholder (lingered behind chips/embeds)

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/post-edit.ejs

    r848b76d r62dea30  
    135135             role="textbox"
    136136             aria-multiline="true"
    137              aria-label="<%= t('pedit.editor_aria') %>"
    138              data-placeholder="<%= t('pedit.editor_placeholder') %>"></div>
     137             aria-label="<%= t('pedit.editor_aria') %>"></div>
    139138
    140139        <%# Sticky "tap to edit" hint (only visible on touch + non-fullscreen
     
    593592  outline-offset: -10px;
    594593}
    595 .pe-editor[data-placeholder]:empty::before,
    596 .pe-editor[data-placeholder]:has(br:only-child)::before {
    597   content: attr(data-placeholder);
    598   color: var(--ink-muted, #999);
    599   pointer-events: none;
    600   opacity: .55;
    601 }
    602594/* Inline prose styles inside the editor — match the public post styling so
    603595   what you see is roughly what you'll get. Margins are tighter than on the
     
    15401532    editor.setAttribute('contenteditable', 'false');
    15411533    editor.classList.add('pe-tap-to-edit');
    1542     editor.setAttribute('data-placeholder', '<%= t('pedit.tap_to_write') %>');
    15431534    editor.addEventListener('click', function () {
    15441535      if (!isFs()) openFs();
Note: See TracChangeset for help on using the changeset viewer.