| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- .container {
- width: 100%;
- height: 100%;
- background: #fafafa;
- position: relative;
- }
- .scrollContainer {
- width: 100%;
- height: 100%;
- }
- .svg {
- width: 100%;
- height: 100%;
- background: #fff;
- cursor: grab;
- overscroll-behavior: contain;
- }
- .panning {
- cursor: grabbing;
- }
- .links path {
- transition: all 0.2s ease;
- }
- .nodes text {
- pointer-events: none;
- }
- .controls {
- position: absolute;
- right: 16px;
- bottom: 16px;
- display: flex;
- gap: 8px;
- background: rgba(255, 255, 255, 0.9);
- border: 1px solid #e5e7eb;
- border-radius: 10px;
- padding: 6px;
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
- z-index: 10;
- }
- .controlButton {
- min-width: 36px;
- height: 32px;
- border: 1px solid #d0d7de;
- border-radius: 8px;
- background: #fff;
- color: #333;
- font-size: 14px;
- cursor: pointer;
- position: relative;
- }
- .controlButton:hover {
- background: #f5f7fb;
- }
|