info_panel: remove tag count limits
Categorized tags were capped at 50 per category and flat tags at 100. Tags area is already inside a QScrollArea so there's no layout reason for the limit. All tags now render. behavior change: posts with 50+ tags per category now show all of them instead of silently truncating.
This commit is contained in:
parent
d355f24394
commit
710839387a
@ -144,7 +144,7 @@ class InfoPanel(QWidget):
|
|||||||
+ (f" color: {color};" if color else "")
|
+ (f" color: {color};" if color else "")
|
||||||
)
|
)
|
||||||
self._tags_flow.addWidget(header)
|
self._tags_flow.addWidget(header)
|
||||||
for tag in tags[:50]:
|
for tag in tags:
|
||||||
btn = QPushButton(tag)
|
btn = QPushButton(tag)
|
||||||
btn.setFlat(True)
|
btn.setFlat(True)
|
||||||
btn.setCursor(Qt.CursorShape.PointingHandCursor)
|
btn.setCursor(Qt.CursorShape.PointingHandCursor)
|
||||||
@ -160,7 +160,7 @@ class InfoPanel(QWidget):
|
|||||||
# in-flight. When a fetch IS pending, leaving the tags
|
# in-flight. When a fetch IS pending, leaving the tags
|
||||||
# area empty avoids the flat→categorized re-layout hitch
|
# area empty avoids the flat→categorized re-layout hitch
|
||||||
# (categories arrive ~200ms later and render in one pass).
|
# (categories arrive ~200ms later and render in one pass).
|
||||||
for tag in post.tag_list[:100]:
|
for tag in post.tag_list:
|
||||||
btn = QPushButton(tag)
|
btn = QPushButton(tag)
|
||||||
btn.setFlat(True)
|
btn.setFlat(True)
|
||||||
btn.setCursor(Qt.CursorShape.PointingHandCursor)
|
btn.setCursor(Qt.CursorShape.PointingHandCursor)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user