fix(desktop): improve legacy WebView style compatibility
This commit is contained in:
30 files changed
+1802
-459
No files matched your search
@@ -1476,7 +1476,7 @@ watch(driverStoreTab, (tab) => {
|
||||
v-if="!driver.installed && !isManagedJdbcBuiltinDriver(driver.db_type) && !isDriverProgressActive(driver.db_type) && !isDriverQueued(driver.db_type)"
|
||||
size="sm"
|
||||
variant="ghost"
|
||||
class="h-7 w-7 rounded-md text-xs text-muted-foreground"
|
||||
class="driver-store-local-import-button h-7 w-7 rounded-md text-xs text-muted-foreground"
|
||||
:title="importingDriver === driver.db_type ? t('driverStore.importing') : t('driverStore.importLocalJar')"
|
||||
:disabled="upgradingAll || installing !== null || agentImportBusy"
|
||||
@click="importDriverFile(driver)"
|
||||
@@ -1533,7 +1533,7 @@ watch(driverStoreTab, (tab) => {
|
||||
</nav>
|
||||
|
||||
<!-- Driver list area -->
|
||||
<div class="min-w-0 flex-1 overflow-y-auto sm:pl-4">
|
||||
<div class="driver-store-agent-results min-w-0 flex-1 overflow-y-auto sm:pl-4">
|
||||
<!-- Empty: still loading -->
|
||||
<div v-if="drivers.length === 0" class="py-12 text-center text-sm text-muted-foreground">
|
||||
{{ t("common.loading") }}
|
||||
@@ -1594,7 +1594,7 @@ watch(driverStoreTab, (tab) => {
|
||||
v-if="!driver.installed && !isManagedJdbcBuiltinDriver(driver.db_type) && !isDriverProgressActive(driver.db_type) && !isDriverQueued(driver.db_type)"
|
||||
size="sm"
|
||||
variant="ghost"
|
||||
class="h-7 w-7 rounded-md text-xs text-muted-foreground"
|
||||
class="driver-store-local-import-button h-7 w-7 rounded-md text-xs text-muted-foreground"
|
||||
:title="importingDriver === driver.db_type ? t('driverStore.importing') : t('driverStore.importLocalJar')"
|
||||
:disabled="upgradingAll || installing !== null || agentImportBusy"
|
||||
@click="importDriverFile(driver)"
|
||||
@@ -1678,7 +1678,7 @@ watch(driverStoreTab, (tab) => {
|
||||
v-if="!driver.installed && !isManagedJdbcBuiltinDriver(driver.db_type) && !isDriverProgressActive(driver.db_type) && !isDriverQueued(driver.db_type)"
|
||||
size="sm"
|
||||
variant="ghost"
|
||||
class="h-7 w-7 rounded-md text-xs text-muted-foreground"
|
||||
class="driver-store-local-import-button h-7 w-7 rounded-md text-xs text-muted-foreground"
|
||||
:title="importingDriver === driver.db_type ? t('driverStore.importing') : t('driverStore.importLocalJar')"
|
||||
:disabled="upgradingAll || installing !== null || agentImportBusy"
|
||||
@click="importDriverFile(driver)"
|
||||
@@ -2140,6 +2140,71 @@ watch(driverStoreTab, (tab) => {
|
||||
height: 2rem !important;
|
||||
}
|
||||
|
||||
html.dbx-legacy-webview .driver-store-tab {
|
||||
margin-top: 1.25rem !important;
|
||||
}
|
||||
|
||||
html.dbx-legacy-webview .driver-store-agent-tab:not([hidden]),
|
||||
html.dbx-legacy-webview .driver-store-jdbc-tab:not([hidden]),
|
||||
html.dbx-legacy-webview .driver-store-storage-tab:not([hidden]) {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
gap: 1.25rem !important;
|
||||
}
|
||||
|
||||
html.dbx-legacy-webview .driver-store-agent-tab > :not([hidden]) ~ :not([hidden]),
|
||||
html.dbx-legacy-webview .driver-store-jdbc-tab > :not([hidden]) ~ :not([hidden]),
|
||||
html.dbx-legacy-webview .driver-store-storage-tab > :not([hidden]) ~ :not([hidden]) {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
html.dbx-legacy-webview .driver-store-local-import-button {
|
||||
width: 2rem !important;
|
||||
height: 2rem !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
html.dbx-legacy-webview .driver-store-local-import-button svg {
|
||||
width: 1rem !important;
|
||||
height: 1rem !important;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
html.dbx-legacy-webview [data-driver-category-nav] {
|
||||
width: 10rem !important;
|
||||
flex-direction: column !important;
|
||||
overflow-x: hidden !important;
|
||||
overflow-y: auto !important;
|
||||
border-right-width: 1px !important;
|
||||
border-bottom-width: 0 !important;
|
||||
padding-top: 0.125rem !important;
|
||||
padding-right: 0.875rem !important;
|
||||
padding-bottom: 0.125rem !important;
|
||||
}
|
||||
|
||||
html.dbx-legacy-webview [data-driver-category-nav] > button {
|
||||
width: 100% !important;
|
||||
align-self: stretch !important;
|
||||
}
|
||||
|
||||
html.dbx-legacy-webview [data-driver-category-nav] > button[aria-current="page"] {
|
||||
background-color: rgba(23, 23, 23, 0.08) !important;
|
||||
color: rgb(23, 23, 23) !important;
|
||||
}
|
||||
|
||||
html.dbx-legacy-webview.dark [data-driver-category-nav] > button[aria-current="page"] {
|
||||
background-color: rgba(255, 255, 255, 0.1) !important;
|
||||
color: rgb(244, 244, 245) !important;
|
||||
}
|
||||
|
||||
html.dbx-legacy-webview .driver-store-agent-results {
|
||||
width: 0 !important;
|
||||
min-width: 0 !important;
|
||||
flex: 1 1 0% !important;
|
||||
padding-left: 1rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.driver-store-header {
|
||||
align-items: flex-start !important;
|
||||
|
||||
Reference in new issue
Block a user