fraudTech commited on
Commit
87bdda3
·
1 Parent(s): 7ce221d

maths symbols expander

Browse files
Files changed (2) hide show
  1. web/src/App.css +45 -0
  2. web/src/App.tsx +10 -2
web/src/App.css CHANGED
@@ -409,6 +409,51 @@ body {
409
  padding: 1.5rem;
410
  }
411
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
412
  .math-symbols h3 {
413
  margin-bottom: 1.5rem;
414
  color: #c9b8a3;
 
409
  padding: 1.5rem;
410
  }
411
 
412
+ /* Math symbols expander */
413
+ .math-symbols-expander {
414
+ margin: 1.5rem 0;
415
+ background: transparent;
416
+ border: none;
417
+ }
418
+
419
+ .math-symbols-expander[open] .math-symbols-header svg {
420
+ transform: rotate(180deg);
421
+ }
422
+
423
+ .math-symbols-header {
424
+ display: flex;
425
+ align-items: center;
426
+ justify-content: space-between;
427
+ padding: 1rem 1.5rem;
428
+ background: #211d1a;
429
+ border: 1px solid #3a342e;
430
+ border-radius: 12px;
431
+ cursor: pointer;
432
+ font-size: 1rem;
433
+ font-weight: 600;
434
+ color: #c9b8a3;
435
+ transition: all 0.2s ease;
436
+ list-style: none;
437
+ }
438
+
439
+ .math-symbols-header::-webkit-details-marker {
440
+ display: none;
441
+ }
442
+
443
+ .math-symbols-header:hover {
444
+ background: #2a2520;
445
+ border-color: #4a443c;
446
+ }
447
+
448
+ .math-symbols-header svg {
449
+ transition: transform 0.2s ease;
450
+ color: #a89784;
451
+ }
452
+
453
+ .math-symbols-expander[open] .math-symbols {
454
+ margin-top: 1rem;
455
+ }
456
+
457
  .math-symbols h3 {
458
  margin-bottom: 1.5rem;
459
  color: #c9b8a3;
web/src/App.tsx CHANGED
@@ -719,8 +719,15 @@ function App() {
719
  <div ref={messagesEndRef} />
720
  </div>
721
 
722
- <div className="math-symbols">
723
- <div className="symbol-tabs">
 
 
 
 
 
 
 
724
  <button
725
  onClick={() => setActiveSymbolCategory('greek')}
726
  className={`symbol-tab ${activeSymbolCategory === 'greek' ? 'active' : ''}`}
@@ -1002,6 +1009,7 @@ function App() {
1002
  )}
1003
  </div>
1004
  </div>
 
1005
 
1006
  {/* Input container */}
1007
  <div className="input-container">
 
719
  <div ref={messagesEndRef} />
720
  </div>
721
 
722
+ <details className="math-symbols-expander" open>
723
+ <summary className="math-symbols-header">
724
+ <span>📐 Math Symbols</span>
725
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
726
+ <polyline points="6 9 12 15 18 9"></polyline>
727
+ </svg>
728
+ </summary>
729
+ <div className="math-symbols">
730
+ <div className="symbol-tabs">
731
  <button
732
  onClick={() => setActiveSymbolCategory('greek')}
733
  className={`symbol-tab ${activeSymbolCategory === 'greek' ? 'active' : ''}`}
 
1009
  )}
1010
  </div>
1011
  </div>
1012
+ </details>
1013
 
1014
  {/* Input container */}
1015
  <div className="input-container">