Skip to content

Commit 9f75986

Browse files
JSKittyclaude
andcommitted
fix(community): Group Details title overflow + description edit pencil
- The overview title now single-line-ellipsizes (cutoff + max-width) — a long name was widening the whole app into a horizontal scroll. Name length caps at 32 in both editors (inline rename + create-group input). - The description's edit pencil flows inline at the end of the text instead of the shared absolute mid-height anchor, which floated it mid-paragraph on tall blocks (and pinning outside the box just got clipped by the span's overflow). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 8e54be4 commit 9f75986

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ <h3 id="group-overview-name" class="cutoff chat-contact-with-status btn"></h3>
864864
<span id="group-overview-avatar" class="icon icon-chat-circle" style="width: 100px; height: 100px; border-radius: initial; display: inline-block;"></span>
865865
</div>
866866
<div style="padding-bottom: 75px;">
867-
<h3 id="group-overview-secondary-name" class="chat-contact-with-status btn"></h3>
867+
<h3 id="group-overview-secondary-name" class="chat-contact-with-status btn cutoff" style="max-width: 90%; margin-left: auto; margin-right: auto;"></h3>
868868
<span id="group-overview-description" class="chat-contact-status" style="width: 90%; white-space: pre-line; overflow-y: auto; max-height: 225px; font-style: normal; margin-top: 10px;"></span>
869869
<div style="margin-top: 40px; width: 90%; margin-left: auto; margin-right: auto;">
870870
<div style="display: flex; justify-content: center; margin-bottom: 10px;">
@@ -1057,7 +1057,7 @@ <h2 class="chat-new-title"><span class="icon icon-chats chat-new-icon" style="wi
10571057
<span id="create-group-avatar-edit-icon" class="icon icon-plus-circle"></span>
10581058
</div>
10591059
</div>
1060-
<input id="create-group-name" placeholder="Group name..." class="chat-input-container chat-new-input" />
1060+
<input id="create-group-name" placeholder="Group name..." maxlength="32" class="chat-input-container chat-new-input" />
10611061
</div>
10621062
<div style="padding: 0 15px; margin-top: 8px;">
10631063
<textarea id="create-group-description" placeholder="Group description (optional)" class="create-group-description" rows="2"></textarea>

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7820,7 +7820,7 @@ async function renderCommunityOverview(chat, preserveSearch = false) {
78207820
domGroupOverviewNameSecondary.classList.add('group-editable');
78217821
domGroupOverviewNameSecondary.onclick = () => {
78227822
const input = document.createElement('input');
7823-
input.type = 'text'; input.className = 'group-name-input'; input.value = name; input.maxLength = 100;
7823+
input.type = 'text'; input.className = 'group-name-input'; input.value = name; input.maxLength = 32;
78247824
domGroupOverviewNameSecondary.replaceWith(input);
78257825
input.focus(); input.select();
78267826
let saved = false;

src/styles.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10308,6 +10308,15 @@ select:disabled:hover {
1030810308
.group-editable:hover::after {
1030910309
opacity: 0.6;
1031010310
}
10311+
/* Multi-line description: the shared pencil's mid-height absolute anchor floats it
10312+
mid-paragraph on a tall block (and the span's overflow clips any outside pin) —
10313+
let it FLOW inline instead, landing right after the last character of the text. */
10314+
#group-overview-description.group-editable::after {
10315+
position: static;
10316+
display: inline-block;
10317+
transform: none;
10318+
vertical-align: -1px;
10319+
}
1031110320
.group-desc-empty {
1031210321
color: rgba(255, 255, 255, 0.35) !important;
1031310322
font-style: italic !important;

0 commit comments

Comments
 (0)