Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
Adjust UI accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
danburonline committed Feb 26, 2024
1 parent 0c21a33 commit 188ff8a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
13 changes: 11 additions & 2 deletions src/shared/components/ResourceEditor/ResourceEditor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,21 @@ button.cancel {
}
}

.ant-card.ant-card-bordered.results {
margin-top: 2rem !important;
}

.ant-form-item {
margin-bottom: 0;
}

.control-panel {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #f0efef;
padding: 1rem;
height: 52px;
padding: 0.75rem;
height: 56px;
}

._positive {
Expand Down
20 changes: 10 additions & 10 deletions src/subapps/admin/components/Projects/QueryEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import { useEffect, useState } from 'react';
import { Tabs } from 'antd';
import { useHistory, useRouteMatch } from 'react-router';
import {
DEFAULT_ELASTIC_SEARCH_VIEW_ID,
DEFAULT_SPARQL_VIEW_ID,
} from '@bbp/nexus-sdk/es';
import { useNexusContext } from '@bbp/react-nexus';
import SparqlQueryView from '../../views/SparqlQueryView';
import ElasticSearchQueryView from '../../views/ElasticSearchQueryView';
import useNotification from '../../../../shared/hooks/useNotification';
import { Tabs } from 'antd';
import { FC, useEffect, useState } from 'react';
import { useHistory, useRouteMatch } from 'react-router';
import { useOrganisationsSubappContext } from '../..';
import useNotification from '../../../../shared/hooks/useNotification';
import ElasticSearchQueryView from '../../views/ElasticSearchQueryView';
import SparqlQueryView from '../../views/SparqlQueryView';
import './QueryEditor.scss';

const QueryEditor: React.FC<{
const QueryEditor: FC<{
orgLabel: string;
projectLabel: string;
onUpdate: () => void;
}> = ({ orgLabel, projectLabel }) => {
const subapp = useOrganisationsSubappContext();
const subApp = useOrganisationsSubappContext();
const history = useHistory();
const match = useRouteMatch<{
orgLabel: string;
Expand Down Expand Up @@ -52,7 +52,7 @@ const QueryEditor: React.FC<{
setLoading(false);
history.replace(
`/${
subapp.namespace
subApp.namespace
}/${orgLabel}/${projectLabel}/query/${encodeURIComponent(
DEFAULT_SPARQL_VIEW_ID
)}`
Expand All @@ -79,7 +79,7 @@ const QueryEditor: React.FC<{
setActiveKey(tab);
history.replace(
`/${
subapp.namespace
subApp.namespace
}/${orgLabel}/${projectLabel}/query/${encodeURIComponent(
tab === 'sparql'
? DEFAULT_SPARQL_VIEW_ID
Expand Down

0 comments on commit 188ff8a

Please sign in to comment.