mindmap / frontend /src /components /MindMapList.module.css
Rsnarsna's picture
Upload 44 files
b0c3c39 verified
.mindMapList {
padding: 20px 0;
display: flex;
flex-direction: column;
gap: 18px;
background: transparent;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.title {
font-size: 1.1rem;
font-weight: 700;
color: #1a2947;
margin: 0;
}
.newButton {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
background: #007bff;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
transition: background 0.2s, transform 0.2s;
}
.newButton:hover {
background: #0056b3;
transform: translateY(-2px) scale(1.03);
}
.newButton svg {
width: 16px;
height: 16px;
}
.list {
display: flex;
flex-direction: column;
gap: 14px;
overflow-y: auto;
max-height: calc(100vh - 180px);
padding-right: 8px;
}
.list::-webkit-scrollbar {
width: 4px;
}
.list::-webkit-scrollbar-track {
background: transparent;
}
.list::-webkit-scrollbar-thumb {
background: #e0e0e0;
border-radius: 20px;
}
.empty, .loading, .error {
text-align: center;
padding: 28px 0;
font-size: 1rem;
border-radius: 8px;
margin: 0 10px;
}
.empty {
color: #7a8ca3;
background: #f8f9fa;
border: 1px dashed #e0e0e0;
}
.loading {
color: #007bff;
background: #eaf4ff;
}
.error {
color: #dc3545;
background: #fff0f3;
border: 1px solid #ffd6db;
}
.mindMapListTitle {
padding: 0 20px;
margin: 10px 0;
font-size: 14px;
color: #6c757d;
font-weight: 500;
}
.mindMapItem {
display: flex;
align-items: center;
padding: 12px 20px;
color: #2c3e50;
cursor: pointer;
transition: background-color 0.2s;
border-bottom: 1px solid #f0f0f0;
}
.mindMapItem:hover {
background-color: #f8f9fa;
}
.mindMapItem.active {
background-color: #e9ecef;
border-left: 3px solid #007bff;
}
.mindMapIcon {
width: 20px;
height: 20px;
margin-right: 12px;
color: #6c757d;
flex-shrink: 0;
}
.mindMapInfo {
display: flex;
flex-direction: column;
flex-grow: 1;
min-width: 0;
}
.mindMapName {
font-size: 14px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 4px;
}
.mindMapDate {
font-size: 12px;
color: #6c757d;
display: flex;
}
.collapsed .mindMapListTitle,
.collapsed .mindMapName,
.collapsed .mindMapDate {
display: none;
}
.collapsed .mindMapItem {
padding: 12px;
justify-content: center;
display: flex;
}
.collapsed .mindMapIcon {
margin-right: 0;
}
.newMindMapButton {
margin: 10px 20px;
padding: 8px 16px;
background: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
transition: background-color 0.2s;
}
.newMindMapButton:hover {
background: #0056b3;
}
.newMindMapButton .icon {
margin-right: 8px;
}
.collapsed .newMindMapButton {
margin: 10px;
padding: 8px;
}
.collapsed .newMindMapButton span {
display: none;
}
.retryButton {
margin: 10px 20px;
padding: 8px 16px;
background: #6c757d;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
}
.retryButton:hover {
background: #5a6268;
}
@media (max-width: 600px) {
.mindMapList {
padding: 10px 0;
}
.header {
flex-direction: column;
gap: 8px;
}
.list {
max-height: 60vh;
}
}