fix(forge): remove saved comment cards from the changes view (#8653)
* fix(forge): remove saved comment cards from the changes view A comment added to the main input left a card beside its code that the reader could not remove, also after its code changed or its file left the diff. The card's menu now offers Remove for a reference and for a publication receipt; the notice that follows offers Undo, which puts the card back at its place. Removing a card changes neither the main input nor the code host. The three browser-kept cards share the thread card's geometry and its header menu. A browser draft's Edit and Delete move into the menu, its deletion asks first, and its move into the pending review is named Start review while the user has none, as the comment form names it. The card title "Your comment" is gone: the header shows the lines and the state. * fix(forge): keep a draft's Delete while it is edited and let the view name each notice's tone A browser draft being edited hid its menu, so a draft whose text the reader emptied could be neither finished nor deleted. The menu now stays during editing and offers Delete, which asks first as before. The changes view passed its notices to a per-mount function that chose the tone from a list of keys and forwarded the undo action. A second mount with its own copy of that function would show a removal as a failure without Undo. The view now passes the tone and the undo action with each notice, and the mount hands them to the notice store as given.
This commit is contained in:
1 parent
8a96cba995
commit
afca6e729a
16 files changed
+463
-123
No files matched your search
@@ -73,6 +73,30 @@
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
/* A saved comment's header keeps its menu at the top end while the lines and tags wrap beside it. */
|
||||
.recordHeader {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 6px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.recordInfo {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
/* A saved comment is plain text, drawn with its line breaks. */
|
||||
.plain {
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.spacer { flex: 1; }
|
||||
|
||||
/* Text actions inside a card: no fill, accent ink, the same height as the tags beside them. */
|
||||
|
||||
Reference in new issue
Block a user