Update from Git Manager GUI

This commit is contained in:
2026-03-28 00:03:52 +01:00
parent e4b1215aa7
commit d41865608f
3 changed files with 71 additions and 2 deletions

View File

@@ -39,6 +39,7 @@
<span class="toolbar-kicker">Workspace Control</span> <span class="toolbar-kicker">Workspace Control</span>
<strong>Git Manager Explorer Pro</strong> <strong>Git Manager Explorer Pro</strong>
</div> </div>
<span id="project-toolbar-title" class="toolbar-project-title"></span>
</div> </div>
<div class="toolbar-top-actions"> <div class="toolbar-top-actions">
@@ -84,6 +85,8 @@
</div> </div>
</div> </div>
<div id="project-gravur-bar"><span id="project-gravur-title" class="project-gravur-title"></span></div>
<div class="project-gravur-separator"></div>
<div id="contentArea" class="content-area"> <div id="contentArea" class="content-area">
<aside id="favHistorySidebar" class="fav-history-sidebar" aria-label="Favoriten und Verlauf"></aside> <aside id="favHistorySidebar" class="fav-history-sidebar" aria-label="Favoriten und Verlauf"></aside>
<main id="main"> <main id="main">

View File

@@ -3362,6 +3362,11 @@ async function loadGiteaRepos(preloadedData = null, requestId = null) {
} }
async function loadRepoContents(owner, repo, path) { async function loadRepoContents(owner, repo, path) {
// Projekttitel als Gravur unterhalb der Toolbar setzen (nur Repo-Name)
const gravurTitle = document.getElementById('project-gravur-title');
if (gravurTitle) {
gravurTitle.textContent = repo;
}
currentState.view = 'gitea-repo'; currentState.view = 'gitea-repo';
currentState.owner = owner; currentState.owner = owner;
currentState.repo = repo; currentState.repo = repo;
@@ -3403,9 +3408,26 @@ async function loadRepoContents(owner, repo, path) {
}); });
if (!res.ok) { if (!res.ok) {
// Bei Fehler Gravur zurücksetzen
const gravurTitle = document.getElementById('project-gravur-title');
if (gravurTitle) {
gravurTitle.textContent = '';
}
showError('Error: ' + (res.error || 'Unknown error')); showError('Error: ' + (res.error || 'Unknown error'));
return; return;
} }
// Wenn zur Übersicht gewechselt wird, Gravur zurücksetzen
function resetProjectGravurTitle() {
const gravurTitle = document.getElementById('project-gravur-title');
if (gravurTitle) gravurTitle.textContent = '';
}
// Nach dem Laden der Repo-Liste oder beim Klick auf "Zurück" rufe resetProjectGravurTitle() auf
const origLoadRepos = loadRepos;
loadRepos = function(...args) {
resetProjectGravurTitle();
return origLoadRepos.apply(this, args);
};
const grid = $('explorerGrid'); const grid = $('explorerGrid');
if (!grid) return; if (!grid) return;

View File

@@ -1,3 +1,44 @@
.project-gravur-bar {
width: 100%;
min-height: 28px;
display: flex;
align-items: flex-end;
justify-content: center;
background: none;
margin-bottom: 0;
pointer-events: none;
position: relative;
z-index: 10;
}
.project-gravur-title {
font-size: 17px;
font-weight: 500;
color: rgba(174, 189, 216, 0.18);
letter-spacing: 0.04em;
font-style: italic;
user-select: none;
text-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 1.5px 0 rgba(0,0,0,0.13);
transition: color 0.2s;
margin-bottom: 2px;
}
.project-gravur-separator {
width: 100%;
height: 2px;
background: linear-gradient(90deg, rgba(88,213,255,0.10) 0%, rgba(92,135,255,0.10) 100%);
margin-bottom: 0px;
}
.toolbar-project-title {
font-size: 13px;
font-weight: 500;
color: rgba(174, 189, 216, 0.22);
letter-spacing: 0.04em;
margin-left: 32px;
font-style: italic;
pointer-events: none;
user-select: none;
text-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 1.5px 0 rgba(0,0,0,0.13);
transition: color 0.2s;
}
:root { :root {
/* Moderne Farbpalette */ /* Moderne Farbpalette */
--bg-primary: #07111f; --bg-primary: #07111f;
@@ -96,12 +137,15 @@
.titlebar-strip-title { .titlebar-strip-title {
font-size: 11px; font-size: 11px;
font-weight: 700; font-weight: 600;
color: rgba(174, 189, 216, 0.68); color: rgba(174, 189, 216, 0.32); /* viel dezenter */
letter-spacing: 0.045em; letter-spacing: 0.045em;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
text-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 1.5px 0 rgba(0,0,0,0.13);
font-style: italic;
font-family: inherit;
} }
#titlebar-strip .win-controls { #titlebar-strip .win-controls {