mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-07 08:55:12 -04:00
Increase minimum width, and remove word wrap, to fix QLabel squishing problem
This commit is contained in:
parent
24a672dac9
commit
2a23b02f98
2 changed files with 1 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue