Skip to content

Commit b124e33

Browse files
authored
Merge pull request #98 from SolidLabResearch/fix/41
Fix/41
2 parents 7813dc9 + 172349a commit b124e33

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
### Added
10+
### Added<<<<<<< fix/41
1111
- Added 'Unauthorized' to the fetch status (#90)
12+
- Query title above the result table (#41)
1213

1314
### Changed
1415
- On empty query result, show clear message (#86)
1516

1617
### Fixed
1718
- Fixed pagination bug in templated queries (#80)
19+
- Fixed title display inside the selection menu when hovering, does not flow over table anymore (#41)
1820

1921
### Removed
2022

src/components/InteractionLayout/SelectionMenu/SelectionMenu.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ const menuItemTheme = createTheme({
3737
verticalAlign: "middle",
3838
},
3939
"&:hover": {
40+
display: "inline-flex",
4041
overflow: "visible",
41-
minWidth: "fit-content"
42+
whiteSpace: "normal" ,
43+
minWidth: "fit-content",
4244
}
4345
},
4446
},

src/components/ListResultTable/QueryResultList/QueryResultList.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import { Component, useEffect, useState } from "react";
2-
import { Datagrid, ListView, Title, useListContext } from "react-admin";
2+
import { Datagrid, ListView, Title, useListContext, useResourceDefinition } from "react-admin";
33
import ActionBar from "../../ActionBar/ActionBar";
44
import GenericField from "../../../representationProvider/GenericField";
55
import { Term } from "sparqljs";
66
import config from "../../../config";
77
import TableHeader from "./TableHeader/TableHeader";
88
import Button from '@mui/material/Button';
99
import SearchOffIcon from '@mui/icons-material/SearchOff';
10-
import { SvgIcon, Box } from "@mui/material";
10+
import { SvgIcon, Box, Typography } from "@mui/material";
1111

1212
/**
1313
* @param {object} props - the props passed down to the component
1414
* @returns {Component} custom ListViewer as defined by react-admin containing the results of the query with each variable its generic field.
1515
*/
1616
function QueryResultList(props) {
17+
const QueryTitle = useResourceDefinition().options.label;
1718
const { data } = useListContext(props);
1819
const {changeVariables, submitted} = props;
1920
const [values, setValues] = useState(undefined);
@@ -28,8 +29,9 @@ function QueryResultList(props) {
2829
return (
2930
<>
3031
<Title title={config.title} />
31-
{submitted && <Aside changeVariables={changeVariables}/> /* Adding button to make a new query - top left corner */ }
3232

33+
{submitted && <Aside changeVariables={changeVariables}/> /* Adding button to make a new query - top left corner */ }
34+
<Typography fontSize={"2rem"} mt={2} > {QueryTitle} </Typography>
3335
{values ?(
3436
<ListView title=" " actions={<ActionBar />} {...props} >
3537
<Datagrid header={<TableHeader config={config}/>} bulkActionButtons={false}>

0 commit comments

Comments
 (0)