fix: improve mobile UX for relationship badge and thought panel

Fixed two mobile UI issues:

1. Relationship badge sizing on mobile:
   - Badge was stretching vertically due to .rpg-editable mobile styles
   - Override padding, min-height, and line-height for badge on mobile
   - Keep badge at compact 18px × 18px to prevent covering avatar

2. Thought panel initial state:
   - Panel was showing by default instead of the icon
   - Fixed initialization: hide panel, show icon
   - Users now click the 💭 icon to open the dialogue as intended

Changes ensure proper mobile experience with appropriately sized UI
elements and correct initial visibility states.
This commit is contained in:
Lucas 'Paperboy' Rose-Winters
2025-10-16 11:33:59 +11:00
parent 60e371c726
commit e342f4d100
2 changed files with 17 additions and 2 deletions
+3 -2
View File
@@ -3647,8 +3647,9 @@ function createThoughtPanel($message, thoughtsArray) {
right: 'auto' // Clear any right positioning
});
// Initially hide the icon
$thoughtIcon.hide();
// Initially hide the panel and show the icon
$thoughtPanel.hide();
$thoughtIcon.show();
// console.log('[RPG Companion] Thought panel created at:', { top, left });