Skip to content

Commit 5418195

Browse files
rsashankneiljp
authored andcommitted
core: Center the save_draft_confirmation_popup.
1 parent 59f2935 commit 5418195

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

zulipterminal/core.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,17 @@ def search_messages(self, text: str) -> None:
515515

516516
def save_draft_confirmation_popup(self, draft: Composition) -> None:
517517
question = urwid.Text(
518-
"Save this message as a draft? (This will overwrite the existing draft.)"
518+
(
519+
"bold",
520+
"Save this message as a draft? "
521+
"(This will overwrite the existing draft.)",
522+
),
523+
"center",
519524
)
520525
save_draft = partial(self.model.save_draft, draft)
521-
self.loop.widget = PopUpConfirmationView(self, question, save_draft)
526+
self.loop.widget = PopUpConfirmationView(
527+
self, question, save_draft, location="center"
528+
)
522529

523530
def stream_muting_confirmation_popup(
524531
self, stream_id: int, stream_name: str

0 commit comments

Comments
 (0)