Fix large timeout duration in moderation buttons (#2921)
Large timeout durations in moderation buttons will no longer overlap with other buttons or username.
This commit is contained in:
@@ -86,7 +86,15 @@ ModerationAction::ModerationAction(const QString &action)
|
||||
}
|
||||
else
|
||||
{
|
||||
this->line1_ = QString::number(amount / week);
|
||||
// limit to max timeout duration
|
||||
if (amount > 2 * week)
|
||||
{
|
||||
this->line1_ = ">2";
|
||||
}
|
||||
else
|
||||
{
|
||||
this->line1_ = QString::number(amount / week);
|
||||
}
|
||||
this->line2_ = "w";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user