+
+
+
+
+
+
+
+
+
diff --git a/js/ui/drawing-tools.js b/js/ui/drawing-tools.js
index 6ae7687..ac899bc 100644
--- a/js/ui/drawing-tools.js
+++ b/js/ui/drawing-tools.js
@@ -1201,12 +1201,13 @@ export class DrawingManager {
if (isLineWithText) {
textTab.className = tab === 'text' ? 'flex-1 py-2 text-center text-blue-500 border-b-2 border-blue-500 font-medium' : 'flex-1 py-2 text-center text-gray-400 hover:text-white';
textTab.style.display = 'block';
+ document.getElementById('tlContentText').className = tab === 'text' ? 'block' : 'hidden';
} else {
textTab.style.display = 'none';
+ document.getElementById('tlContentText').className = 'hidden';
}
document.getElementById('tlContentStyle').className = tab === 'style' ? 'block' : 'hidden';
- document.getElementById('tlContentText').className = tab === 'text' ? 'block' : 'hidden';
const textPicker = document.getElementById('tlTextColorPicker');
if (textPicker) textPicker.classList.add('hidden');
@@ -1314,14 +1315,6 @@ export class DrawingManager {
if (show) {
panel.classList.remove('hidden');
- const isLineWithText = this.selectedDrawing && ['trend_line', 'ray', 'rectangle', 'horizontal_line', 'vertical_line'].includes(this.selectedDrawing.type);
- if (!isLineWithText) {
- this.activeTLTab = 'style';
- document.getElementById('tlTabStyle').className = 'flex-1 py-2 text-center text-blue-500 border-b-2 border-blue-500 font-medium';
- document.getElementById('tlTabText').className = 'flex-1 py-2 text-center text-gray-400 hover:text-white';
- document.getElementById('tlContentStyle').className = 'block';
- document.getElementById('tlContentText').className = 'hidden';
- }
this.updateSettingsPanelUI();
} else {
panel.classList.add('hidden');