optimize ui
This commit is contained in:
@@ -157,9 +157,6 @@ onMounted(() => {
|
|||||||
<h1>Browser Assistant</h1>
|
<h1>Browser Assistant</h1>
|
||||||
<p>Local Chromium profile manager</p>
|
<p>Local Chromium profile manager</p>
|
||||||
</div>
|
</div>
|
||||||
<button class="refresh-button" type="button" @click="scanBrowsers">
|
|
||||||
{{ loading ? "Scanning..." : "Refresh" }}
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="browsers.length" class="browser-nav">
|
<div v-if="browsers.length" class="browser-nav">
|
||||||
@@ -182,6 +179,10 @@ onMounted(() => {
|
|||||||
<div v-else class="sidebar-empty">
|
<div v-else class="sidebar-empty">
|
||||||
<p>No supported Chromium browser data was found yet.</p>
|
<p>No supported Chromium browser data was found yet.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<button class="refresh-button sidebar-refresh" type="button" @click="scanBrowsers">
|
||||||
|
{{ loading ? "Scanning..." : "Refresh" }}
|
||||||
|
</button>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<main class="content-panel">
|
<main class="content-panel">
|
||||||
@@ -228,6 +229,7 @@ onMounted(() => {
|
|||||||
</button>
|
</button>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<div class="content-scroll-area">
|
||||||
<section v-if="activeSection === 'profiles'" class="content-section">
|
<section v-if="activeSection === 'profiles'" class="content-section">
|
||||||
<div v-if="currentBrowser.profiles.length" class="stack-list">
|
<div v-if="currentBrowser.profiles.length" class="stack-list">
|
||||||
<article
|
<article
|
||||||
@@ -352,6 +354,7 @@ onMounted(() => {
|
|||||||
<p>No bookmarks were discovered for this browser.</p>
|
<p>No bookmarks were discovered for this browser.</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<section v-else class="state-panel">
|
<section v-else class="state-panel">
|
||||||
|
|||||||
@@ -60,9 +60,10 @@ button {
|
|||||||
.app-shell {
|
.app-shell {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 320px minmax(0, 1fr);
|
grid-template-columns: 320px minmax(0, 1fr);
|
||||||
min-height: 100vh;
|
height: 100vh;
|
||||||
padding: 14px;
|
padding: 14px;
|
||||||
gap: 14px;
|
gap: 14px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar,
|
.sidebar,
|
||||||
@@ -76,6 +77,7 @@ button {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding: 20px 16px;
|
padding: 20px 16px;
|
||||||
|
min-height: 0;
|
||||||
border: 1px solid var(--panel-border);
|
border: 1px solid var(--panel-border);
|
||||||
border-radius: 22px;
|
border-radius: 22px;
|
||||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.7));
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.7));
|
||||||
@@ -151,6 +153,9 @@ button {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
min-height: 0;
|
||||||
|
overflow: auto;
|
||||||
|
padding-right: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.browser-nav-item {
|
.browser-nav-item {
|
||||||
@@ -263,8 +268,12 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content-panel {
|
.content-panel {
|
||||||
padding: 4px 0 4px 0;
|
display: flex;
|
||||||
overflow: auto;
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
min-height: 0;
|
||||||
|
padding: 4px 0;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-tabs,
|
.section-tabs,
|
||||||
@@ -277,7 +286,6 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content-section {
|
.content-section {
|
||||||
margin-top: 10px;
|
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -286,6 +294,13 @@ button {
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-scroll-area {
|
||||||
|
min-height: 0;
|
||||||
|
overflow: auto;
|
||||||
|
padding-right: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-tab {
|
.section-tab {
|
||||||
@@ -472,6 +487,11 @@ button {
|
|||||||
padding: 28px;
|
padding: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-refresh {
|
||||||
|
margin-top: auto;
|
||||||
|
align-self: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
.state-panel.error {
|
.state-panel.error {
|
||||||
background: linear-gradient(180deg, rgba(254, 242, 242, 0.92), rgba(255, 255, 255, 0.86));
|
background: linear-gradient(180deg, rgba(254, 242, 242, 0.92), rgba(255, 255, 255, 0.86));
|
||||||
}
|
}
|
||||||
@@ -479,11 +499,20 @@ button {
|
|||||||
@media (max-width: 1180px) {
|
@media (max-width: 1180px) {
|
||||||
.app-shell {
|
.app-shell {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
height: auto;
|
||||||
|
min-height: 100vh;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-panel {
|
.content-panel {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.browser-nav,
|
||||||
|
.content-scroll-area {
|
||||||
|
overflow: visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user