frontend_nyla/src/components/Dashboard/DashboardChat/DashboardChatHistory/DashboardChatHistoryItem.module.css
2025-05-28 13:56:36 +02:00

169 lines
No EOL
2.7 KiB
CSS

.workflowItem {
background: white;
border-radius: 12px;
border: 1px solid #e0e0e0;
margin-bottom: 12px;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.workflowItem:hover {
border-color: #d0d0d0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.workflowMain {
display: flex;
align-items: flex-start;
padding: 16px;
gap: 16px;
}
.workflowContent {
flex: 1;
min-width: 0;
}
.workflowInfo {
margin-bottom: 8px;
}
.workflowId {
font-size: 16px;
font-weight: 600;
color: #333;
margin: 0 0 8px 0;
line-height: 1.2;
}
.workflowMeta {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
}
.workflowStatus {
font-size: 12px;
font-weight: 600;
padding: 4px 8px;
border-radius: 12px;
background-color: #f4f3f5;
}
.workflowRound {
font-size: 12px;
color: #888098;
background-color: #f4f3f5;
padding: 2px 6px;
border-radius: 8px;
}
.workflowDates {
display: flex;
flex-direction: column;
gap: 2px;
}
.workflowDate {
font-size: 12px;
color: #666;
margin: 0;
line-height: 1.3;
}
.workflowDescription {
margin-top: 8px;
}
.messagePreview {
margin-bottom: 8px;
padding: 8px;
background-color: #f4f3f5;
border-radius: 6px;
border-left: 3px solid #888098;
}
.previewText {
font-size: 13px;
color: #888098;
margin: 0;
line-height: 1.4;
word-break: break-word;
font-style: italic;
}
.workflowName {
font-size: 14px;
color: #555;
margin: 0;
line-height: 1.4;
word-break: break-word;
}
.actionButtons {
display: flex;
flex-direction: column;
gap: 8px;
flex-shrink: 0;
}
.actionButton {
width: 36px;
height: 36px;
border: none;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
font-size: 14px;
}
.actionButton:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.resumeButton {
background-color: #3a8088;
color: white;
}
.resumeButton:hover:not(:disabled) {
background-color: #34737b;
transform: translateY(-1px);
}
.deleteButton {
background-color: #d85b65;
color: white;
}
.deleteButton:hover:not(:disabled) {
background-color: #c3525b;
transform: translateY(-1px);
}
.deletingMessage {
padding: 8px 16px;
background-color: #fff3cd;
border-top: 1px solid #e0e0e0;
color: #856404;
font-size: 12px;
text-align: center;
}
@media (max-width: 768px) {
.workflowMain {
flex-direction: column;
gap: 12px;
}
.actionButtons {
flex-direction: row;
justify-content: flex-end;
}
}