Working-folder-Anzeige im ⚙︎-Dialog: Projektordner zuerst (fest), dann Zusatzordner mit Entfernen; Label oben ausgerichtet; Projektpfade überall ~-kontrahiert
This commit is contained in:
@@ -152,6 +152,7 @@ const THEME_NAMES: [string, string][] = [
|
||||
|
||||
interface TerminalSettings {
|
||||
name: string;
|
||||
path: string;
|
||||
theme: string;
|
||||
icon: string | null;
|
||||
title: string;
|
||||
@@ -169,6 +170,7 @@ async function openSettings(p: Project) {
|
||||
});
|
||||
settings.value = {
|
||||
name: p.name,
|
||||
path: p.path,
|
||||
theme: p.terminal.theme ?? "mocha",
|
||||
icon: p.terminal.icon,
|
||||
title: p.terminal.title ?? "",
|
||||
@@ -617,9 +619,12 @@ onUnmounted(() => window.clearInterval(timer));
|
||||
<span v-else class="icon-path">{{ $t("projects.defaultIcon") }}</span>
|
||||
</span>
|
||||
</label>
|
||||
<label class="field">
|
||||
<label class="field field-top">
|
||||
{{ $t("projects.workDir") }}
|
||||
<span class="workdirs">
|
||||
<span class="icon-row">
|
||||
<span class="icon-path">{{ settings.path }}</span>
|
||||
</span>
|
||||
<span v-for="wd in settings.workDirs" :key="wd" class="icon-row">
|
||||
<span class="icon-path">{{ wd }}</span>
|
||||
<button @click="removeWorkDir(wd)">{{ $t("projects.remove") }}</button>
|
||||
|
||||
@@ -590,6 +590,16 @@ td select {
|
||||
gap: 0.35rem;
|
||||
}
|
||||
|
||||
.workdirs .icon-path {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/* Mehrzeilige Felder: Label oben ausrichten statt vertikal zentriert. */
|
||||
.dialog .field.field-top {
|
||||
align-items: start;
|
||||
padding-top: 0.15rem;
|
||||
}
|
||||
|
||||
.icon-path {
|
||||
font-family: var(--mono);
|
||||
color: var(--overlay);
|
||||
|
||||
Reference in New Issue
Block a user