mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 11:35:54 +08:00
cb-2961/table sticky header (#1341)
* CB-2961 fix: table's header sticky styles * CB-2961 styles: add MenuBarSmallItem * CB-2961 chore: use color instead of shadow for splitter * CB-2961 styles: log viewer message details panel * CB-2961 fix: menu bar small item click area Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com>
This commit is contained in:
+1
-7
@@ -22,12 +22,6 @@ const styles = css`
|
||||
Pane {
|
||||
composes: theme-background-surface theme-text-on-surface from global;
|
||||
}
|
||||
TableHeader {
|
||||
composes: theme-background-surface from global;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
Split {
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
@@ -66,7 +60,7 @@ export const ExecutionPlanTreeBlock = observer<Props>(function ExecutionPlanTree
|
||||
<Pane>
|
||||
{state.nodes.length && state.columns.length ? (
|
||||
<Table selectedItems={state.selectedNodes} onSelect={state.selectNode}>
|
||||
<TableHeader>
|
||||
<TableHeader fixed>
|
||||
{state.columns.map(property => {
|
||||
const name = property.displayName;
|
||||
const columnTooltip = `${name} ${property.description ? '(' + property.description + ')' : ''}`;
|
||||
|
||||
+2
-12
@@ -9,7 +9,6 @@
|
||||
import { computed } from 'mobx';
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import { useMemo } from 'react';
|
||||
import styled, { css } from 'reshadow';
|
||||
|
||||
import { Table, TableHeader, TableColumnHeader, TableBody, TextPlaceholder, useTranslate } from '@cloudbeaver/core-blocks';
|
||||
import type { ObjectPropertyInfo, SqlExecutionPlanNode } from '@cloudbeaver/core-sdk';
|
||||
@@ -17,15 +16,6 @@ import type { ObjectPropertyInfo, SqlExecutionPlanNode } from '@cloudbeaver/core
|
||||
import { isVisibleProperty } from '../useExecutionPlanTreeState';
|
||||
import { PropertiesPanelItemsGroup } from './PropertiesPanelItemsGroup';
|
||||
|
||||
const styles = css`
|
||||
TableColumnHeader {
|
||||
composes: theme-background-surface from global;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
`;
|
||||
|
||||
interface Props {
|
||||
selectedNode: string;
|
||||
nodeList: SqlExecutionPlanNode[];
|
||||
@@ -63,9 +53,9 @@ export const PropertiesPanel = observer<Props>(function PropertiesPanel({ select
|
||||
const nameColumnTitle = translate('sql_execution_plan_properties_panel_name');
|
||||
const valueColumnTitle = translate('sql_execution_plan_properties_panel_value');
|
||||
|
||||
return styled(styles)(
|
||||
return (
|
||||
<Table className={className}>
|
||||
<TableHeader>
|
||||
<TableHeader fixed>
|
||||
<TableColumnHeader title={nameColumnTitle}>
|
||||
{nameColumnTitle}
|
||||
</TableColumnHeader>
|
||||
|
||||
Reference in New Issue
Block a user