Files
openidea/src/features/project-trust/trust.module.css
T
arookieofc b54a745d6d feat(trust): let users add trusted folders from settings (#1812)
* feat(trust): let users add trusted folders from settings

The trusted-locations check already matches projects by path prefix, but
the only way to populate it was the "Trust projects in…" checkbox on the
first-open dialog — a folder could never be trusted ahead of time.

Add a project_trust_add_location command that canonicalizes the picked
directory, rejects non-directories, and deduplicates, plus an "Add
folder…" button on the Project Trust settings page backed by the native
directory picker.

Fixes #1743

* fix(trust): translate the trusted-location additions into Chinese

The zh source-text catalog must cover every literal UI text; the three
new strings in the trusted-locations settings page were missing.
2026-11-06 22:08:10 +08:00

70 lines
1.1 KiB
CSS

.content {
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.content p {
margin: 0;
}
.pathLine {
display: flex;
min-width: 0;
white-space: nowrap;
}
.content > .pathLine {
color: var(--fg-secondary);
}
.pathHead {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.pathTail {
flex: none;
max-width: 70%;
overflow: hidden;
text-overflow: ellipsis;
}
.folderOption {
max-width: 100%;
}
.folderLabel {
display: flex;
gap: var(--space-2);
min-width: 0;
}
.folderPrefix {
flex: none;
}
.banner {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
padding: var(--space-2) var(--space-4);
background: var(--bg-elev);
color: var(--fg);
border-bottom: 1px solid var(--border);
}
.row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
}
.sectionHead {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
}
.sectionHead h3 {
margin: 0;
}
.hint {
color: var(--fg-secondary);
}
.path {
overflow-wrap: anywhere;
}