Add base styles for main container and adjust z-index in CSS (hopefully this fixes it)

This commit is contained in:
Staninna committed 2025-08-25 13:22:09 +02:00
1 parent f4863f9018
commit 7984f94f73
2 files changed
+10 -6

No files matched your search

+1 -6
View File
@@ -3238,12 +3238,6 @@
cssLink.setAttribute('data-wplace-theme', 'true');
document.head.appendChild(cssLink);
// Link complete styles CSS file (includes extracted inline styles)
const completeCssLink = document.createElement('link');
completeCssLink.rel = 'stylesheet';
completeCssLink.href = './auto-image-complete-styles.css';
completeCssLink.setAttribute('data-wplace-complete', 'true');
document.head.appendChild(completeCssLink);
// Apply theme-specific dynamic styles
const style = document.createElement("style")
@@ -3790,6 +3784,7 @@
settingsContainer.style.cssText += `
min-width: 420px;
max-width: 480px;
z-index: 99999;
color: ${theme.text || 'white'};
font-family: ${theme.fontFamily || "'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"};
box-shadow: ${theme.boxShadow || '0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1)'};
+9
View File
@@ -1,6 +1,15 @@
/* WPlace Auto-Image Bot - Complete CSS Styles */
/* All styling separated from JavaScript */
/* Main Container Base Styles */
#wplace-image-bot-container {
position: fixed !important;
top: 20px !important;
left: 20px !important;
z-index: 10000 !important;
max-width: 400px !important;
}
/* CSS Custom Properties for Dynamic Values */
:root {
/* Default Theme Colors */