Increase minimum width, and remove word wrap, to fix QLabel squishing problem

This commit is contained in:
Micah Lee 2018-02-06 16:11:48 -08:00
parent 24a672dac9
commit 2a23b02f98
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 1 additions and 7 deletions

View File

@ -56,7 +56,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.setWindowTitle('OnionShare')
self.setWindowIcon(QtGui.QIcon(common.get_resource_path('images/logo.png')))
self.setMinimumWidth(400)
self.setMinimumWidth(500)
# Load settings
self.config = config

View File

@ -92,12 +92,10 @@ class ServerStatus(QtWidgets.QWidget):
# URL layout
url_font = QtGui.QFont()
self.url_description = QtWidgets.QLabel(strings._('gui_url_description', True))
self.url_description.setWordWrap(True)
self.url_label = QtWidgets.QLabel()
self.url_label.setStyleSheet('QLabel { color: #666666; font-size: 12px; }')
self.url = QtWidgets.QLabel()
self.url.setFont(url_font)
self.url.setWordWrap(True)
self.url.setStyleSheet('QLabel { background-color: #ffffff; color: #000000; padding: 10px; border: 1px solid #666666; }')
url_buttons_style = 'QPushButton { color: #3f7fcf; }'
@ -189,10 +187,6 @@ class ServerStatus(QtWidgets.QWidget):
self.copy_hidservauth_button.show()
else:
self.copy_hidservauth_button.hide()
# Resize parent widget
p = self.parentWidget()
p.resize(p.sizeHint())
else:
self.url_description.hide()
self.url_label.hide()