FileChooser in Attachments
This commit is contained in:
@@ -818,8 +818,21 @@
|
||||
width: min(1120px, 100%);
|
||||
}
|
||||
.attachment-rules-body {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
.attachment-rules-body > .data-grid-shell:only-child {
|
||||
margin: -22px;
|
||||
width: calc(100% + 44px);
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
.attachment-rules-body > .data-grid-shell:only-child .data-grid-container {
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
.attachment-rules-body > .data-grid-shell:only-child .data-grid-container .data-grid {
|
||||
min-height: 0;
|
||||
}
|
||||
.attachment-rules-empty {
|
||||
border: 1px dashed var(--line-dark);
|
||||
@@ -850,11 +863,12 @@
|
||||
.attachment-rules-table th:nth-child(3),
|
||||
.attachment-rules-table td:nth-child(3) { min-width: 230px; }
|
||||
.attachment-rules-table th:nth-child(4),
|
||||
.attachment-rules-table td:nth-child(4),
|
||||
.attachment-rules-table th:nth-child(5),
|
||||
.attachment-rules-table td:nth-child(5) { width: 175px; }
|
||||
.attachment-rules-table td:nth-child(4) { width: 175px; }
|
||||
.attachment-rules-table th:last-child,
|
||||
.attachment-rules-table td:last-child { width: 123px; }
|
||||
.attachment-rules-table td:last-child { width: 145px; }
|
||||
.attachment-rules-table .data-grid-body-cell:last-child .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.recipient-editor-table th:nth-child(2),
|
||||
@@ -1242,3 +1256,340 @@
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* Managed file picker shared by attachment sources and rule editors. */
|
||||
.managed-file-chooser-dialog {
|
||||
width: min(1080px, calc(100vw - 40px));
|
||||
max-height: min(820px, calc(100vh - 40px));
|
||||
}
|
||||
.managed-file-chooser-body {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.managed-file-chooser-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
|
||||
min-height: 480px;
|
||||
max-height: calc(100vh - 240px);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: var(--panel);
|
||||
}
|
||||
.managed-file-chooser-spaces {
|
||||
min-width: 0;
|
||||
padding: 16px;
|
||||
border-right: 1px solid var(--line);
|
||||
background: var(--panel-soft);
|
||||
overflow: auto;
|
||||
}
|
||||
.managed-file-chooser-spaces h3 {
|
||||
margin: 0 0 12px;
|
||||
font-size: 13px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .04em;
|
||||
color: var(--muted);
|
||||
}
|
||||
.managed-file-space-list {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
}
|
||||
.managed-file-space-button,
|
||||
.managed-file-entry {
|
||||
width: 100%;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 9px;
|
||||
background: transparent;
|
||||
color: var(--ink);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.managed-file-space-button {
|
||||
display: grid;
|
||||
grid-template-columns: 20px minmax(0, 1fr);
|
||||
gap: 9px;
|
||||
align-items: start;
|
||||
padding: 9px;
|
||||
}
|
||||
.managed-file-space-button span,
|
||||
.managed-file-entry > span:not(.managed-file-shared-badge) {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
}
|
||||
.managed-file-space-button small,
|
||||
.managed-file-entry small {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
.managed-file-space-button:hover:not(:disabled),
|
||||
.managed-file-space-button.is-selected {
|
||||
border-color: var(--line-dark);
|
||||
background: var(--panel);
|
||||
}
|
||||
.managed-file-space-button.is-selected {
|
||||
border-color: var(--accent);
|
||||
box-shadow: inset 3px 0 0 var(--accent);
|
||||
}
|
||||
.managed-file-space-button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: .45;
|
||||
}
|
||||
.managed-file-chooser-browser {
|
||||
display: grid;
|
||||
grid-template-rows: auto auto minmax(0, 1fr) auto;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
.managed-file-chooser-toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
padding: 12px 14px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.managed-file-breadcrumb {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
.managed-file-breadcrumb > button,
|
||||
.managed-file-breadcrumb span button {
|
||||
display: inline-flex;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
color: var(--ink);
|
||||
padding: 5px 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.managed-file-breadcrumb button:hover:not(:disabled) {
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.managed-file-choice-tabs {
|
||||
display: inline-flex;
|
||||
border: 1px solid var(--line-dark);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.managed-file-choice-tabs button {
|
||||
border: 0;
|
||||
border-right: 1px solid var(--line-dark);
|
||||
background: var(--panel);
|
||||
color: var(--muted);
|
||||
padding: 7px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.managed-file-choice-tabs button:last-child { border-right: 0; }
|
||||
.managed-file-choice-tabs button.is-active {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent-strong);
|
||||
font-weight: 700;
|
||||
}
|
||||
.managed-pattern-editor {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding: 12px 14px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.managed-pattern-editor label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.managed-file-entry-list {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 4px;
|
||||
padding: 10px;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
.managed-file-entry {
|
||||
display: grid;
|
||||
grid-template-columns: 22px minmax(0, 1fr) auto;
|
||||
gap: 9px;
|
||||
align-items: center;
|
||||
min-height: 52px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.managed-file-entry:hover:not(:disabled) {
|
||||
border-color: var(--line);
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.managed-file-entry.is-selected {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
.managed-file-entry:disabled {
|
||||
color: var(--ink);
|
||||
opacity: 1;
|
||||
cursor: default;
|
||||
}
|
||||
.managed-file-entry.is-folder:not(:disabled) { cursor: pointer; }
|
||||
.managed-file-shared-badge {
|
||||
display: inline-flex;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
border: 1px solid var(--success-line, var(--line));
|
||||
border-radius: 999px;
|
||||
padding: 3px 7px;
|
||||
color: var(--success, var(--muted));
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.managed-file-empty {
|
||||
padding: 28px 16px;
|
||||
text-align: center;
|
||||
}
|
||||
.managed-file-chooser-note {
|
||||
margin: 0;
|
||||
padding: 10px 14px;
|
||||
border-top: 1px solid var(--line);
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.managed-file-chooser-dialog {
|
||||
width: calc(100vw - 20px);
|
||||
}
|
||||
.managed-file-chooser-layout {
|
||||
grid-template-columns: 1fr;
|
||||
max-height: calc(100vh - 220px);
|
||||
}
|
||||
.managed-file-chooser-spaces {
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
max-height: 160px;
|
||||
}
|
||||
.managed-file-chooser-toolbar {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
.attachment-source-path-cell {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
}
|
||||
.attachment-source-path-cell .small-note {
|
||||
margin: 0;
|
||||
}
|
||||
.warning-text {
|
||||
color: var(--warning, #8a5b00);
|
||||
}
|
||||
|
||||
/* Managed attachment chooser refinements. */
|
||||
.split-field-action {
|
||||
gap: 0;
|
||||
}
|
||||
.split-field-action > input,
|
||||
.split-field-action > select,
|
||||
.split-field-action > textarea {
|
||||
border-top-right-radius: 0 !important;
|
||||
border-bottom-right-radius: 0 !important;
|
||||
}
|
||||
.split-field-action > button,
|
||||
.split-field-action > .button,
|
||||
.split-field-action > .btn {
|
||||
align-self: stretch;
|
||||
margin-left: -1px;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.managed-file-chooser-dialog {
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr) auto;
|
||||
height: min(820px, calc(100vh - 40px));
|
||||
overflow: hidden;
|
||||
}
|
||||
.managed-file-chooser-dialog > .dialog-header {
|
||||
padding: 16px 18px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: var(--panel);
|
||||
}
|
||||
.managed-file-chooser-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
padding: 14px;
|
||||
}
|
||||
.managed-file-chooser-footer {
|
||||
flex: 0 0 auto;
|
||||
padding: 12px 18px;
|
||||
border-top: 1px solid var(--line);
|
||||
background: var(--panel);
|
||||
box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
|
||||
}
|
||||
.managed-file-chooser-layout {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
max-height: none;
|
||||
}
|
||||
.managed-file-chooser-spaces.file-tree-panel {
|
||||
display: flex;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.managed-file-chooser-spaces .file-tree-list {
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
.managed-pattern-summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.managed-pattern-results {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
.managed-pattern-results .file-list-table {
|
||||
min-width: 680px;
|
||||
}
|
||||
.managed-pattern-result-row {
|
||||
width: 100%;
|
||||
border-top: 0;
|
||||
border-right: 0;
|
||||
border-left: 0;
|
||||
background: transparent;
|
||||
color: var(--ink);
|
||||
text-align: left;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.managed-pattern-result-row .file-list-name > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.managed-pattern-result-row .file-list-name strong {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.managed-pattern-result-row .file-list-name small {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.managed-file-chooser-dialog {
|
||||
height: calc(100vh - 20px);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -860,6 +860,22 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.data-grid-header-label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.data-grid-header-label > span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.data-grid-header-cell.is-sortable .data-grid-header-button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -100,12 +100,12 @@
|
||||
.account-menu-header strong { display: block; color: var(--text-strong); }
|
||||
.account-menu-header span { color: var(--muted); font-size: 13px; }
|
||||
.overlay-backdrop { position: fixed; inset: 0; background: rgba(37,40,42,.38); display: grid; place-items: center; z-index: 9000; padding: 24px; }
|
||||
.modal-panel { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.26); }
|
||||
.modal-header { min-height: 58px; display: flex; align-items: center; padding: 0 22px; border-bottom: 1px solid var(--line); }
|
||||
.modal-panel { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.26); }
|
||||
.modal-header { min-height: 58px; display: flex; align-items: center; flex: 0 0 auto; padding: 0 22px; border-bottom: 1px solid var(--line); }
|
||||
.modal-header h2 { margin: 0; font-size: 18px; color: var(--text-strong); }
|
||||
.modal-close { margin-left: auto; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
|
||||
.modal-body { padding: 22px; }
|
||||
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--panel-soft); }
|
||||
.modal-body { min-height: 0; overflow: auto; padding: 22px; }
|
||||
.modal-footer { flex: 0 0 auto; padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--panel-soft); }
|
||||
.login-hint { background: #f6f5f3; border: 1px solid var(--line); padding: 10px 12px; border-radius: 4px; color: var(--muted); font-size: 13px; }
|
||||
.help-panel-section { margin-bottom: 16px; }
|
||||
.help-panel-section h3 { margin: 0 0 7px; color: var(--text-strong); }
|
||||
|
||||
Reference in New Issue
Block a user