Commit Graph

483 Commits

Author SHA1 Message Date
Spicy_Marinara a2712e85d5 Force remove all margins from rpg-stats-header and rpg-mood with !important 2025-10-14 20:42:19 +02:00
Spicy_Marinara 9dcb5ceb53 Update style.css 2025-10-14 20:38:52 +02:00
Spicy_Marinara 0a03ac7f22 Restore smaller bottom margin (6px) to rpg-panel-header and force remove bottom margin from rpg-map-bg 2025-10-14 20:37:22 +02:00
Spicy_Marinara c5f119f301 Remove margins from rpg-panel-header, rpg-map-bg, and rpg-weather-forecast 2025-10-14 20:32:13 +02:00
Spicy_Marinara 1c82f06e81 Force remove ALL margins from Refresh RPG Info button 2025-10-14 19:51:45 +02:00
Spicy_Marinara dfbcb8125c Fix button sizes: Remove ALL margins and set both buttons to 353x33px
- Remove all margins from both Refresh RPG Info and Settings buttons
- Set exact dimensions: width 353px, height 33px for both buttons
- Remove padding and use box-sizing: border-box for precise sizing
- Both buttons now identical in size
2025-10-14 19:49:05 +02:00
Spicy_Marinara 1e9d7c3adc Remove top margin from Refresh RPG Info button and match Settings button size
- Add negative top margin to Refresh button to compensate for parent gap
- Match Settings button styling to Refresh button (border, radius, font-size, shadow)
2025-10-14 19:45:27 +02:00
Spicy_Marinara 50b5915400 Remove margins from UI elements and fix collapse button visibility
- Remove margins from rpg-stats-header, rpg-mood, rpg-panel-header, and rpg-manual-update-btn
- Fix collapse/expand button visibility by changing panel overflow to visible
- Increase collapse button z-index to 10001 for better layering
- Adjust collapse button positioning for better visual alignment
2025-10-14 19:39:36 +02:00
Spicy_Marinara 737b580be8 Support both global and user-specific extension installation paths
- Dynamically detect extension location using import.meta.url
- Support installation in public/extensions (install for all users)
- Support installation in data/default-user/extensions (install just for me)
- Automatically sets correct extensionFolderPath based on detected location
2025-10-14 19:24:25 +02:00
Spicy_Marinara ea10d1eaac Add collapsible panel, fix inventory scrolling, adjust toggle margins
- Add collapse/expand toggle button to side panels (left/right positions)
- Button shows on the outside edge of the panel with chevron icon
- Panel collapses to 40px vertical bar, button icon direction updates based on position
- Fix inventory box stretching issue by adding max/min height constraints
- Inventory items now scroll internally with flex layout
- Remove bottom margin from Enable Immersive HTML toggle
- Add top margin to Manual Update button to maintain spacing
2025-10-14 19:18:17 +02:00
Spicy Marinara b3a2e8c771 Remove active characters list from system message
Removed the introduction of the active characters list from the system message.
2025-10-14 18:12:11 +02:00
Spicy Marinara 93b8bc19a0 Fix spelling errors and enhance README clarity
Corrected spelling errors and improved clarity in the README.
2025-10-14 17:29:39 +02:00
Spicy_Marinara 158517c600 feat: auto-import HTML cleaning regex for prompts
- Adds ensureHtmlCleaningRegex() function that automatically imports a regex script
- Regex removes HTML tags from outgoing prompts to prevent formatting issues
- Only imports if not already present (checks existing scripts by name)
- Based on the regex-clean_html_(from_outgoing_prompt).json specification
- Runs on extension initialization
- Non-blocking: won't fail extension load if regex import fails
2025-10-14 15:00:19 +02:00
Spicy_Marinara c35606bb28 fix(mobile): respect topbar height and enable proper scrolling
- Changed top: auto to top: var(--topBarBlockSize) to prevent panel from covering SillyTavern topbar
- Removed fixed height: 70vh/80vh properties that prevented proper sizing
- Panel height now determined by top/bottom constraints for natural fit
- Changed overflow-y: auto to overflow-y: scroll for reliable scrolling
- Added -webkit-overflow-scrolling: touch for iOS smooth scrolling
- Fixes panel covering entire screen, content squishing, and scroll issues
2025-10-14 14:57:17 +02:00
Spicy Marinara 063ae7f72c Include job sponsorship request in README
Added a personal note about job sponsorship.
2025-10-14 14:43:41 +02:00
Spicy_Marinara 7440860402 feat: Add mobile-optimized FAB toggle button for panel
- Added floating action button (FAB) that appears only on mobile (≤768px)
- Panel becomes a bottom sheet modal on mobile instead of fixed sidebar
- Smooth slide-up animation with backdrop overlay
- Panel hidden by default on mobile, opens when FAB clicked
- Touch-friendly button sizes (44px minimum per Apple HIG)
- 70vh height on tablets, 80vh on phones for better usability
- Rounded top corners for modern mobile UI
- Desktop behavior unchanged
2025-10-14 14:39:45 +02:00
Spicy_Marinara 9609eef6ff fix: Update placeholder hints to clarify generation mode options 2025-10-14 14:31:16 +02:00
Spicy_Marinara 609a4b9e47 feat: Enable 'Show Thoughts in Chat' by default for new installs 2025-10-14 14:24:37 +02:00
Spicy_Marinara d98ecce5c3 fix: Append panel directly to body for proper flexbox layout
- Changed from $('#sheld').after/before() to $('body').append()
- Panel is now a direct child of body element
- Works better with SillyTavern's main flexbox layout
- CSS handles all positioning (no more DOM position logic)
2025-10-14 14:10:02 +02:00
Spicy_Marinara 0926390205 fix: Add margin auto to keep chat centered with panel open
- Forces #sheld to use margin: auto when panel is visible
- Prevents chat from being pushed to one side
- Applies to both left and right panel positions
2025-10-14 13:16:06 +02:00
Spicy_Marinara 685c7ae1c2 fix: Make panel responsive and remove forced chat margins
- Removed margin-left/right on #sheld that was pushing chat to center
- Panel now overlays instead of pushing content
- Added responsive breakpoints for different screen sizes
- Width: 380px default, max 30vw, scales down on smaller screens
- Mobile: Full width at bottom on very small screens
- Panel no longer breaks layout on different screen sizes
2025-10-14 13:14:46 +02:00
Spicy_Marinara d1e4d2d7df fix: Add third-party prefix to extensionName for template loading
- Changed to 'third-party/rpg-companion-sillytavern'
- User-installed extensions need the third-party prefix
- Template loader looks for scripts/extensions/third-party/[name]
2025-10-14 13:01:54 +02:00
Spicy_Marinara 5af6186c32 fix: Update extensionName to match repository folder name
- Changed from 'rpg-companion' to 'rpg-companion-sillytavern'
- Fixes 'Error rendering template' issue
- Template loader uses extensionName to find template files
2025-10-14 12:58:15 +02:00
Spicy_Marinara 73b76fee2f fix: Correct import paths for user-installed extensions
- Changed import paths from ../../ to ../../../
- User-installed extensions are in data/default-user/extensions/
- Paths need one more level up to reach script.js and other core files
2025-10-14 12:42:58 +02:00
Spicy_Marinara 2dd17eda84 fix: Remove Generate from imports for release branch compatibility
- Generate function may not exist in older SillyTavern versions
- Added fallback check for window.Generate before using it
- Should fix '[object Event]' loading error on release branch
2025-10-14 12:40:33 +02:00
Spicy_Marinara aede293116 fix: Add error handling to initialization for better debugging 2025-10-14 12:33:46 +02:00
Spicy_Marinara 217833dc6c fix: Update manifest homePage to correct repository URL 2025-10-14 12:32:40 +02:00
Spicy_Marinara e53f6675ea fix: Use more compatible emoji parsing without Unicode property escapes
- Replaced \p{Emoji} regex with line-by-line parsing
- Avoids compatibility issues with older JavaScript engines
- Skips percentage and inventory lines to find mood emoji
- Supports all emoji types including compound emojis
2025-10-14 12:17:57 +02:00
Spicy_Marinara d5e4010d4d fix: Support compound emojis in mood parsing
- Updated regex to handle compound emojis with zero-width joiners (ZWJ)
- Fixes mood display for emojis like 😶‍🌫️ (face in clouds)
- Now captures full emoji sequences including variation selectors
2025-10-14 11:39:32 +02:00
Spicy_Marinara a9b0b6fefe fix: Remove duplicate lines from README 2025-10-14 00:19:28 +02:00
Spicy_Marinara f0c0ab8592 fix: Clean up corrupted README with proper markdown formatting 2025-10-14 00:16:26 +02:00
Spicy_Marinara 30bb35910c Initial commit: RPG Companion Extension v1.0.0
- Character tracking with emoji, traits, thoughts, relationships
- Location tracking with name, description, weather, temperature
- Quest tracking with objectives and plot progression
- Inventory management with item conditions
- Party composition tracking
- Player stats (health, energy, mood)
- Two generation modes: Separate (Info Box) and Merged (inline)
- Customizable themes and styling
- Editable thought bubbles with fixed positioning
- Support for Discord and Ko-fi links
- AGPLv3 License
2025-10-14 00:07:37 +02:00
Spicy_Marinara 518f2763aa Initial commit 2025-10-14 00:01:23 +02:00