mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-28 08:06:56 +00:00
Improve move and copy dialog ui components (#6467)
* implement catalog view in move dialog * update move dialog ui components * improve move dialog ui * remove debug info * improve copy dialog ui * improve search view ui in move and copy dialog, refactor part of file-chooser.js and file-chooser.css * handle cases where repo_name is too long, truncate text with an ellipsis, remove search container border * handle cases where repo_name too long in search result item * update move and dialog ui details * add radius to repo list item
This commit is contained in:
@@ -289,3 +289,92 @@
|
||||
.dir-view-path .path-split {
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
.custom-modal {
|
||||
box-sizing: border-box;
|
||||
font-size: 1rem;
|
||||
max-width: 740px;
|
||||
}
|
||||
|
||||
.custom-modal .row {
|
||||
flex: 1;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.custom-modal .modal-content {
|
||||
min-height: 534px;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.custom-modal .modal-body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
padding: 1rem 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.custom-modal .modal-body .alert-message {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
margin: 0;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.custom-modal .repo-list-col {
|
||||
max-width: 240px;
|
||||
padding: 1rem;
|
||||
line-height: 24px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.custom-modal .repo-list-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
height: 32px;
|
||||
padding: 0 10px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease, font-weight 0.3s ease;
|
||||
}
|
||||
|
||||
.custom-modal .repo-list-item.active {
|
||||
background-color: #f5f5f5;
|
||||
font-weight: 500;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.custom-modal .repo-list-item:hover{
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.custom-modal .repo-list-item.active::before {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: -8px;
|
||||
width: 4px;
|
||||
height: 24px;
|
||||
background-color: #ff8000;
|
||||
border-radius: 2px;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.custom-modal .file-list-col {
|
||||
max-width: 500px;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.custom-modal .file-list-col .file-chooser-container,
|
||||
.custom-modal .file-list-col .file-chooser-search-input {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
Reference in New Issue
Block a user