adding trash folder
This commit is contained in:
@@ -563,6 +563,11 @@ body {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
/* Para modo papelera, ajustar columnas */
|
||||
.trash-item.file-item {
|
||||
grid-template-columns: minmax(180px, 1.5fr) 0.5fr 1fr 120px 100px;
|
||||
}
|
||||
|
||||
.file-item:hover {
|
||||
background-color: #f0f8ff;
|
||||
}
|
||||
@@ -939,3 +944,73 @@ body {
|
||||
margin-right: 8px;
|
||||
color: #ffc107;
|
||||
}
|
||||
|
||||
/* Estilos para la papelera */
|
||||
.trash-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.trash-actions {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
display: none;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.file-card.trash-item:hover .trash-actions,
|
||||
.file-item.trash-item:hover .actions-cell {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.trash-actions button,
|
||||
.actions-cell button {
|
||||
background: #fff;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
padding: 4px 8px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.trash-actions button:hover,
|
||||
.actions-cell button:hover {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
.btn-restore {
|
||||
color: #4CAF50;
|
||||
}
|
||||
|
||||
.btn-delete {
|
||||
color: #f44336;
|
||||
}
|
||||
|
||||
.actions-cell {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 300px;
|
||||
width: 100%;
|
||||
color: #666;
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
/* Botón de peligro para vaciar papelera */
|
||||
.btn-danger {
|
||||
background-color: #f44336;
|
||||
color: white;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user