Spaces:
Runtime error
Runtime error
| /* Sidebar styles */ | |
| #sidebar { | |
| background: linear-gradient(to bottom, rgba(31, 41, 55, 0.9), rgba(20, 78, 85, 0.9)); | |
| box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3); | |
| transition: transform 0.2s ease-in-out; /* Shortened transition for faster response */ | |
| } | |
| #sidebar nav ul li a { | |
| display: flex; | |
| align-items: center; | |
| padding: 0.5rem 1rem; | |
| border-radius: 0.375rem; | |
| transition: background-color 0.2s ease; /* Removed transform for performance */ | |
| } | |
| #sidebar nav ul li a:hover { | |
| background-color: rgba(55, 65, 81, 0.8); | |
| } | |
| #conversationList li { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 0.5rem 1rem; | |
| border-radius: 0.375rem; | |
| transition: background-color 0.2s ease; /* Removed transform for performance */ | |
| } | |
| #conversationList li:hover { | |
| background-color: rgba(55, 65, 81, 0.8); | |
| } | |
| #conversationList li span.truncate { | |
| max-width: 150px; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .delete-conversation-btn { | |
| opacity: 0; | |
| transition: opacity 0.2s ease; | |
| } | |
| #conversationList li:hover .delete-conversation-btn { | |
| opacity: 1; | |
| } | |
| #swipeHint { | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { transform: scale(1); opacity: 0.7; } | |
| 50% { transform: scale(1.2); opacity: 1; } | |
| 100% { transform: scale(1); opacity: 0.7; } | |
| } | |
| /* Responsive adjustments */ | |
| @media (max-width: 768px) { | |
| #sidebar { | |
| width: 80%; | |
| max-width: 280px; | |
| } | |
| .md\:ml-64 { | |
| margin-left: 0 ; | |
| } | |
| #sidebarToggleMobile { | |
| display: none ; | |
| } | |
| } |