Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/session-widgets/auth_passkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ void AuthPasskey::initUI()

/* 文案提示 */
m_textLabel->setText(tr("Please plug in the security key"));
m_textLabel->setWordWrap(true);
m_textLabel->setWordWrap(false);
m_textLabel->setElideMode(Qt::ElideNone);
Comment on lines +40 to +41

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): When the localized prompt or an authentication result is wider than the available 280-pixel passkey widget, disabling wrapping while using Qt::ElideNone causes the label to clip the text rather than display it completely. The fixed margins, spinner, and authentication-state label leave less width than the label's natural size.

Triggers: When a long translation or backend-provided authentication result is shown.

Suggested fix: Give the label enough layout space or use a non-wrapping presentation that preserves the full text, such as horizontal scrolling or an appropriate tooltip, instead of allowing it to be clipped.


/* 旋转提示和文案提示布局 */
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
Expand Down
Loading