Skip to content

Commit

Permalink
Fix missing bottom margin in conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalo-bulnes authored and sssoleileraaa committed Jan 6, 2022
1 parent e783b73 commit fb231e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3022,6 +3022,7 @@ def delete_conversation(self) -> None:

class ConversationScrollArea(QScrollArea):

MARGIN_BOTTOM = 28
MARGIN_LEFT = 38
MARGIN_RIGHT = 20

Expand All @@ -3041,7 +3042,9 @@ def __init__(self) -> None:
conversation.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
self.conversation_layout = QVBoxLayout()
conversation.setLayout(self.conversation_layout)
self.conversation_layout.setContentsMargins(self.MARGIN_LEFT, 0, self.MARGIN_RIGHT, 0)
self.conversation_layout.setContentsMargins(
self.MARGIN_LEFT, 0, self.MARGIN_RIGHT, self.MARGIN_BOTTOM
)
self.conversation_layout.setSpacing(0)

# `conversation` is a child of this scroll area
Expand Down

0 comments on commit fb231e9

Please sign in to comment.