1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 15:54:39 +00:00

txt viewer support auto wrap (#7815)

* txt file support wrap line

* external txt file support wrap line

* change more icon
This commit is contained in:
Michael An
2025-06-17 21:47:01 +08:00
committed by GitHub
parent ec4918be54
commit 32433e5b1a
8 changed files with 183 additions and 39 deletions

View File

@@ -59,6 +59,29 @@
top: 145px !important;
}
.shared-file-view-head .file-toolbar-btn {
width: 28px;
height: 28px;
padding: 0 4px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
.shared-file-view-head .file-toolbar-btn .sdocfont {
color: #666;
}
.shared-file-view-head .file-toolbar-btn .seafile-multicolor-icon {
fill: #666;
}
.shared-file-view-head .file-toolbar-btn:hover {
background-color: #EFEFEF;
border-radius: 3px;
}
@media (max-width: 991.98px) {
.shared-file-view-head {
width: 100%;

View File

@@ -1,3 +1,40 @@
.text-file-view {
overflow: auto;
}
.txt-line-wrap-menu .custom-switch {
padding-left: 0px;
width: 100%;
justify-content: space-between;
cursor: pointer;
}
.txt-line-wrap-menu .custom-switch .custom-switch-description {
margin-left: 0px;
color: unset;
transition: none;
}
.txt-line-wrap-menu .custom-switch .custom-switch-indicator {
width: 22px;
height: 12px;
border-radius: 6px;
}
.txt-line-wrap-menu .custom-switch .custom-switch-indicator:before {
height: 8px;
width: 8px;
}
.txt-line-wrap-menu .custom-switch .custom-switch-input:checked ~ .custom-switch-indicator:before {
left: 12px;
}
.txt-line-wrap-menu .custom-switch .custom-switch-input:checked~.custom-switch-indicator {
background: #ff8000;
}
.txt-line-wrap-menu .custom-switch .custom-switch-input:focus~.custom-switch-indicator {
box-shadow: 0 0 0 2px rgba(255, 128, 0, .25);
border-color: #ff8000;
}