tiffank1802 commited on
Commit
0c6917d
·
1 Parent(s): fa91e2f

Fix canvas scroll - use flex display

Browse files
Files changed (1) hide show
  1. static/style.css +2 -2
static/style.css CHANGED
@@ -75,13 +75,13 @@ input[type="color"] { width: 40px; height: 30px; }
75
  .toggle-btn.active { background: var(--bg-dark); color: var(--text); border-bottom: 2px solid var(--accent); }
76
 
77
  .editor-panel { display: none; flex: 1; overflow: hidden; background: #fff; border-radius: 4px; }
78
- .editor-panel.active { display: block; }
79
 
80
  #rich-editor { width: 100%; height: 100%; background: #fff; color: #000; padding: 20px; font-size: 14px; line-height: 1.6; overflow-y: auto; outline: none; }
81
 
82
  #drawing-canvas { width: 2000px; height: 2000px; cursor: crosshair; touch-action: none; background: #fff; }
83
 
84
- .canvas-scroll-container { width: 100%; height: 100%; overflow: auto; }
85
 
86
  .status-bar { height: 24px; background: var(--accent); padding: 0 12px; font-size: 11px; display: flex; align-items: center; }
87
 
 
75
  .toggle-btn.active { background: var(--bg-dark); color: var(--text); border-bottom: 2px solid var(--accent); }
76
 
77
  .editor-panel { display: none; flex: 1; overflow: hidden; background: #fff; border-radius: 4px; }
78
+ .editor-panel.active { display: flex; }
79
 
80
  #rich-editor { width: 100%; height: 100%; background: #fff; color: #000; padding: 20px; font-size: 14px; line-height: 1.6; overflow-y: auto; outline: none; }
81
 
82
  #drawing-canvas { width: 2000px; height: 2000px; cursor: crosshair; touch-action: none; background: #fff; }
83
 
84
+ .canvas-scroll-container { width: 100%; height: 100%; overflow: auto; display: flex; }
85
 
86
  .status-bar { height: 24px; background: var(--accent); padding: 0 12px; font-size: 11px; display: flex; align-items: center; }
87