Remove forced height on copy URL button

This commit is contained in:
Micah Lee 2020-06-29 12:34:38 -07:00
parent 9c70edfd12
commit a07cdf855a
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -27,6 +27,7 @@ from onionshare import strings
from ..widgets import Alert from ..widgets import Alert
from ..widgets import QRCodeDialog from ..widgets import QRCodeDialog
class ServerStatus(QtWidgets.QWidget): class ServerStatus(QtWidgets.QWidget):
""" """
The server status chunk of the GUI. The server status chunk of the GUI.
@ -95,14 +96,17 @@ class ServerStatus(QtWidgets.QWidget):
self.copy_url_button.setStyleSheet( self.copy_url_button.setStyleSheet(
self.common.gui.css["server_status_url_buttons"] self.common.gui.css["server_status_url_buttons"]
) )
self.copy_url_button.setMinimumHeight(65)
self.copy_url_button.clicked.connect(self.copy_url) self.copy_url_button.clicked.connect(self.copy_url)
self.copy_hidservauth_button = QtWidgets.QPushButton( self.copy_hidservauth_button = QtWidgets.QPushButton(
strings._("gui_copy_hidservauth") strings._("gui_copy_hidservauth")
) )
self.show_url_qr_code_button = QtWidgets.QPushButton(strings._("gui_show_url_qr_code")) self.show_url_qr_code_button = QtWidgets.QPushButton(
strings._("gui_show_url_qr_code")
)
self.show_url_qr_code_button.hide() self.show_url_qr_code_button.hide()
self.show_url_qr_code_button.clicked.connect(self.show_url_qr_code_button_clicked) self.show_url_qr_code_button.clicked.connect(
self.show_url_qr_code_button_clicked
)
self.show_url_qr_code_button.setFlat(True) self.show_url_qr_code_button.setFlat(True)
self.show_url_qr_code_button.setStyleSheet( self.show_url_qr_code_button.setStyleSheet(
self.common.gui.css["server_status_url_buttons"] self.common.gui.css["server_status_url_buttons"]