Fix star rating buttons clipping text in review dialog
Increased button size from 36x36 to 40x40 and added padding: 0px so the star glyphs render fully instead of being cut off on the sides. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
58e270746d
commit
a486bb6d45
|
|
@ -53,10 +53,11 @@ class ReviewDialog(QDialog):
|
||||||
self._star_buttons = []
|
self._star_buttons = []
|
||||||
for i in range(1, 6):
|
for i in range(1, 6):
|
||||||
btn = QPushButton("☆")
|
btn = QPushButton("☆")
|
||||||
btn.setFixedSize(36, 36)
|
btn.setFixedSize(40, 40)
|
||||||
btn.setStyleSheet("""
|
btn.setStyleSheet("""
|
||||||
QPushButton {
|
QPushButton {
|
||||||
font-size: 20px;
|
font-size: 22px;
|
||||||
|
padding: 0px;
|
||||||
border: 1px solid #e2e8f0;
|
border: 1px solid #e2e8f0;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: #f7fafc;
|
background: #f7fafc;
|
||||||
|
|
@ -142,7 +143,8 @@ class ReviewDialog(QDialog):
|
||||||
btn.setText("★")
|
btn.setText("★")
|
||||||
btn.setStyleSheet("""
|
btn.setStyleSheet("""
|
||||||
QPushButton {
|
QPushButton {
|
||||||
font-size: 20px;
|
font-size: 22px;
|
||||||
|
padding: 0px;
|
||||||
border: 1px solid #d69e2e;
|
border: 1px solid #d69e2e;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: #fefcbf;
|
background: #fefcbf;
|
||||||
|
|
@ -154,7 +156,8 @@ class ReviewDialog(QDialog):
|
||||||
btn.setText("☆")
|
btn.setText("☆")
|
||||||
btn.setStyleSheet("""
|
btn.setStyleSheet("""
|
||||||
QPushButton {
|
QPushButton {
|
||||||
font-size: 20px;
|
font-size: 22px;
|
||||||
|
padding: 0px;
|
||||||
border: 1px solid #e2e8f0;
|
border: 1px solid #e2e8f0;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: #f7fafc;
|
background: #f7fafc;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue