mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 00:39:37 -05:00
Increase minimum width, and remove word wrap, to fix QLabel squishing problem
This commit is contained in:
parent
24a672dac9
commit
2a23b02f98
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user