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:
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user