prevent info panel from pushing splitter on long source URLs
This commit is contained in:
parent
b1139cbea6
commit
27c53cb237
@ -8,7 +8,7 @@ from pathlib import Path
|
|||||||
from PySide6.QtCore import Qt, Property, Signal
|
from PySide6.QtCore import Qt, Property, Signal
|
||||||
from PySide6.QtGui import QColor
|
from PySide6.QtGui import QColor
|
||||||
from PySide6.QtWidgets import (
|
from PySide6.QtWidgets import (
|
||||||
QWidget, QVBoxLayout, QLabel, QScrollArea, QPushButton,
|
QWidget, QVBoxLayout, QLabel, QScrollArea, QPushButton, QSizePolicy,
|
||||||
)
|
)
|
||||||
|
|
||||||
from ..core.api.base import Post
|
from ..core.api.base import Post
|
||||||
@ -85,12 +85,16 @@ class InfoPanel(QWidget):
|
|||||||
|
|
||||||
self._title = QLabel("No post selected")
|
self._title = QLabel("No post selected")
|
||||||
self._title.setStyleSheet("font-weight: bold;")
|
self._title.setStyleSheet("font-weight: bold;")
|
||||||
|
self._title.setMinimumWidth(0)
|
||||||
|
self._title.setSizePolicy(QSizePolicy.Policy.Ignored, QSizePolicy.Policy.Preferred)
|
||||||
layout.addWidget(self._title)
|
layout.addWidget(self._title)
|
||||||
|
|
||||||
self._details = QLabel()
|
self._details = QLabel()
|
||||||
self._details.setWordWrap(True)
|
self._details.setWordWrap(True)
|
||||||
self._details.setTextInteractionFlags(Qt.TextInteractionFlag.TextSelectableByMouse | Qt.TextInteractionFlag.TextBrowserInteraction)
|
self._details.setTextInteractionFlags(Qt.TextInteractionFlag.TextSelectableByMouse | Qt.TextInteractionFlag.TextBrowserInteraction)
|
||||||
self._details.setMaximumHeight(120)
|
self._details.setMaximumHeight(120)
|
||||||
|
self._details.setMinimumWidth(0)
|
||||||
|
self._details.setSizePolicy(QSizePolicy.Policy.Ignored, QSizePolicy.Policy.Preferred)
|
||||||
layout.addWidget(self._details)
|
layout.addWidget(self._details)
|
||||||
|
|
||||||
self._tags_label = QLabel("Tags:")
|
self._tags_label = QLabel("Tags:")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user