mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 16:25:59 +00:00
SYNC: Merge pull request #2 from dbgate/feature/admin-ui
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
export let containerMaxWidth = undefined;
|
||||
export let flex1 = true;
|
||||
export let contentTestId = undefined;
|
||||
export let inlineTabs = false;
|
||||
|
||||
export function setValue(index) {
|
||||
value = index;
|
||||
@@ -27,7 +28,7 @@
|
||||
</script>
|
||||
|
||||
<div class="main" class:flex1>
|
||||
<div class="tabs">
|
||||
<div class="tabs" class:inlineTabs>
|
||||
{#each _.compact(tabs) as tab, index}
|
||||
<div class="tab-item" class:selected={value == index} on:click={() => (value = index)} data-testid={tab.testid}>
|
||||
<span class="ml-2">
|
||||
@@ -78,17 +79,27 @@
|
||||
height: var(--dim-tabs-height);
|
||||
min-height: var(--dim-tabs-height);
|
||||
right: 0;
|
||||
background-color: var(--theme-bg-2);
|
||||
overflow-x: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.tabs:not(.inlineTabs) {
|
||||
background-color: var(--theme-bg-2);
|
||||
}
|
||||
|
||||
.tabs.inlineTabs {
|
||||
border-bottom: 1px solid var(--theme-border);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.tabs.inlineTabs .tab-item.selected {
|
||||
border-bottom: 2px solid var(--theme-font-link);
|
||||
}
|
||||
.tabs::-webkit-scrollbar {
|
||||
height: 7px;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
border-right: 1px solid var(--theme-border);
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
display: flex;
|
||||
@@ -96,6 +107,10 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tabs:not(.inlineTabs) .tab-item {
|
||||
border-right: 1px solid var(--theme-border);
|
||||
}
|
||||
|
||||
/* .tab-item:hover {
|
||||
color: ${props => props.theme.tabs_font_hover};
|
||||
} */
|
||||
@@ -124,4 +139,5 @@
|
||||
.container.isInline:not(.tabVisible) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user