mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 05:59:26 +08:00
**Previously**, a post's `reply_to_post_number` was fixed at creation time and couldn't be changed, so users who accidentally replied to the wrong post had no way to correct the reply relationship. **In this update**, the edit composer lets users with edit permission change or remove the post a reply points to; `PostRevisor` validates the new target, keeps `reply_to_user_id` and the parent's `reply_count` in sync, and records the change in post revisions. https://github.com/user-attachments/assets/1741179c-45e1-4404-88d0-0c97ff0c7969 --------- Co-authored-by: Mark VanLandingham <markvanlan@gmail.com>
50 lines
1.1 KiB
SCSS
Vendored
50 lines
1.1 KiB
SCSS
Vendored
.change-reply-to-modal {
|
|
.d-modal__container {
|
|
max-width: 720px;
|
|
width: 100%;
|
|
}
|
|
|
|
.d-modal__body {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.change-reply-to-modal__hint,
|
|
.change-reply-to-modal__selection {
|
|
margin: 0 0 var(--space-2) 0;
|
|
color: var(--primary-medium);
|
|
}
|
|
|
|
// Re-flow the fullscreen timeline inline inside the modal body.
|
|
.timeline-container.timeline-fullscreen {
|
|
position: static;
|
|
max-height: none;
|
|
padding: var(--space-2) 0 0 0;
|
|
margin: 0;
|
|
box-shadow: none;
|
|
border-top: none;
|
|
background-color: transparent;
|
|
z-index: auto;
|
|
|
|
&.show {
|
|
max-height: none;
|
|
}
|
|
|
|
.topic-timeline {
|
|
display: block;
|
|
width: auto;
|
|
table-layout: auto;
|
|
}
|
|
|
|
// The timeline footer has "jump to post" and notification controls that
|
|
// are irrelevant inside this picker; hide them.
|
|
.timeline-footer-controls {
|
|
display: none;
|
|
}
|
|
|
|
// Keep the excerpt readable; the fullscreen styles line-clamp to 8 which
|
|
// is fine here too.
|
|
.post-excerpt {
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
}
|
|
}
|