mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 18:29:23 +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:
@@ -1,78 +1,97 @@
|
||||
.file-chooser-container {
|
||||
padding: 0.5rem;
|
||||
height: 20rem;
|
||||
border: 1px solid rgba(0, 40, 100, 0.12);
|
||||
border-radius: 3px;
|
||||
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
overflow: auto;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.item-toggle{
|
||||
position: absolute;
|
||||
height: 1.5rem;
|
||||
width: 1.5rem;
|
||||
left: 0;
|
||||
top: 0;
|
||||
line-height: 1.5rem !important;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
color: #c0c0c0;
|
||||
}
|
||||
|
||||
.file-chooser-container .list-view {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.list-view-header {
|
||||
position: relative;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
.list-view-header:hover {
|
||||
background-color: #FDEFB9;
|
||||
}
|
||||
|
||||
.list-view-header .name {
|
||||
color: #eb8205;
|
||||
}
|
||||
|
||||
.list-view-content {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
height: 20rem;
|
||||
border-radius: 3px;
|
||||
font-size: 1rem;
|
||||
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
}
|
||||
|
||||
.file-chooser-item {
|
||||
position: relative;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.file-chooser-item .item-info {
|
||||
height: 1.5rem;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
line-height: 1.625;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.file-chooser-item .item-active {
|
||||
background: #F3AF7D !important;
|
||||
background: #f2f4f6 !important;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.file-chooser-item .item-active::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: -8px;
|
||||
width: 4px;
|
||||
height: 24px;
|
||||
background-color: #ff8000;
|
||||
border-radius: 2px;
|
||||
box-shadow: inset 0 0 1px #999;
|
||||
color: #fff;
|
||||
display: block;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.file-chooser-item .item-info:hover {
|
||||
background: #FDEFB9;
|
||||
border-radius: 2px;
|
||||
box-shadow: inset 0 0 1px #999;
|
||||
.file-chooser-item .item-info {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 1.75rem;
|
||||
line-height: 1.625;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
|
||||
.file-chooser-item .item-info .name {
|
||||
flex: 1;
|
||||
.file-chooser-item .item-info:hover {
|
||||
background: #f5f5f5;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.file-chooser-item .item-active .icon {
|
||||
color: #fff !important;
|
||||
.file-chooser-item .item-info .item-left-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.file-chooser-item .item-info .item-text {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
padding-left: 0.25rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
transition: color 0.3s ease, background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.file-chooser-search-close {
|
||||
position: absolute;
|
||||
top: -0.5rem;
|
||||
right: -0.5rem;
|
||||
}
|
||||
|
||||
.file-chooser-search-container {
|
||||
position: relative;
|
||||
height: 20rem;
|
||||
padding: 10px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.file-chooser-search-container td {
|
||||
height: 40px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.file-chooser-search-container td .span {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.file-chooser-search-container .tr-highlight {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.file-chooser-search-input {
|
||||
@@ -82,67 +101,64 @@
|
||||
.file-chooser-search-input .search-control {
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
right: 0.7rem;
|
||||
right: 1.5rem;
|
||||
}
|
||||
|
||||
.file-chooser-search-input .search-input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.file-chooser-search-container {
|
||||
height: 20rem;
|
||||
.file-chooser-table td {
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.item-toggle {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
line-height: 1.5rem !important;
|
||||
color: #c0c0c0;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.list-view-content {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.list-view-header {
|
||||
position: relative;
|
||||
border: 1px solid #eee;
|
||||
padding: 10px;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
.list-view-header:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.list-view-header .name {
|
||||
color: #eb8205;
|
||||
}
|
||||
|
||||
.scroll-wrapper {
|
||||
max-height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.file-chooser-search-close {
|
||||
position: absolute;
|
||||
right: -0.5rem;
|
||||
top: -0.5rem;
|
||||
}
|
||||
|
||||
.searched-active {
|
||||
background: #F3AF7D !important;
|
||||
background: #f3af7d !important;
|
||||
border-radius: 2px;
|
||||
box-shadow: inset 0 0 1px #999;
|
||||
}
|
||||
|
||||
.searched-active td {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.searched-active .icon {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
.searched-active td {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.select-open-repo {
|
||||
background: #FDEFB9;
|
||||
background: #fdefb9;
|
||||
}
|
||||
|
||||
.file-chooser-table td {
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.file-chooser-item .item-info .item-text {
|
||||
padding-left: 2.8rem;
|
||||
font-size: 15px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.file-chooser-item .item-info .item-left-icon {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -78,7 +78,7 @@
|
||||
}
|
||||
|
||||
.search-input {
|
||||
height: 1.875rem;
|
||||
height: 2.375rem;
|
||||
width: 15rem;
|
||||
font-size: .875rem;
|
||||
}
|
||||
|
Reference in New Issue
Block a user