feat: 工作目录支持页面内目录浏览器
This commit is contained in:
@@ -767,6 +767,24 @@ code {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.field-with-action {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.field-with-action .field-input {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.pick-directory-button {
|
||||
flex-shrink: 0;
|
||||
min-height: 38px;
|
||||
padding: 8px 14px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.env-detector-bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -986,6 +1004,108 @@ code {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.directory-picker {
|
||||
display: flex;
|
||||
width: min(760px, 100%);
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.directory-picker-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 14px 24px;
|
||||
}
|
||||
|
||||
.directory-path-form {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.directory-picker-body {
|
||||
max-height: 46vh;
|
||||
min-height: 220px;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 12px 16px 16px;
|
||||
}
|
||||
|
||||
.directory-list {
|
||||
display: flex;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.directory-row {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.directory-row:hover {
|
||||
background: var(--surface-muted);
|
||||
}
|
||||
|
||||
.directory-row:focus-visible {
|
||||
outline: 2px solid var(--primary);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
.directory-icon {
|
||||
flex-shrink: 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.directory-name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.directory-picker-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 14px 24px;
|
||||
background: #fafafb;
|
||||
}
|
||||
|
||||
.directory-picker-summary {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.directory-picker-summary code {
|
||||
overflow: hidden;
|
||||
color: var(--text-secondary);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.directory-picker-actions {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.drawer-overlay {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
Reference in New Issue
Block a user