mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 08:52:12 +00:00
* 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.
70 lines
1.1 KiB
CSS
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;
|
|
}
|