mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-21 08:13:34 +00:00
fix(grid): include Mongo JSON preview in grid track sizing
This commit is contained in:
@@ -11230,9 +11230,11 @@ const mongoJsonPreviewStyle = computed(() => ({
|
||||
|
||||
const contentGridStyle = computed(() => {
|
||||
const hasRightCellDetail = !cellDetailPanelIsBottom.value && showCellDetail.value && activeCellDetail.value;
|
||||
const tableInfoAvailableWidth = hasRightCellDetail ? `max(0px, calc(100% - ${detailPanelHeight.value}px))` : "100%";
|
||||
const rightPanelWidth = hasRightCellDetail ? detailPanelHeight.value : mongoJsonPreviewOpen.value ? mongoJsonPreviewWidth.value : 0;
|
||||
const hasRightPanel = hasRightCellDetail || mongoJsonPreviewOpen.value;
|
||||
const tableInfoAvailableWidth = hasRightPanel ? `max(0px, calc(100% - ${rightPanelWidth}px))` : "100%";
|
||||
const tableInfoTrack = showTableInfo.value ? `minmax(0, min(${ddlWidth.value}px, ${tableInfoAvailableWidth}))` : "0px";
|
||||
const detailTrack = hasRightCellDetail ? `minmax(0, min(${detailPanelHeight.value}px, 100%))` : "0px";
|
||||
const detailTrack = hasRightPanel ? `minmax(0, min(${rightPanelWidth}px, 100%))` : "0px";
|
||||
|
||||
if (cellDetailPanelIsBottom.value && showCellDetail.value && activeCellDetail.value) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user