Skip to content

Commit

Permalink
variant length fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
GMILLA92 committed Jan 26, 2024
1 parent 62fab25 commit 232670d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/components/GenomicVariations/VariantsResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function VariantsResults (props) {
const [queryArray, setQueryArray] = useState([])
const [beaconsList, setBeaconsList] = useState([])

const [limit, setLimit] = useState(0)
const [limit, setLimit] = useState(10)
const [skip, setSkip] = useState(0)

const [showVariantsResults, setShowVariantsResults] = useState(false)
Expand Down Expand Up @@ -68,7 +68,7 @@ function VariantsResults (props) {
isAuthenticated = true
}
}

console.log(props.variantMinLength)
try {
let res = await axios.get(configData.API_URL + '/info')

Expand All @@ -78,7 +78,7 @@ function VariantsResults (props) {

beaconsList.reverse()

if (props.showBar === true) {
if (props.showBar === false) {
setShowVariantsResults(true)
if (props.query !== null) {
if (props.query.includes(',')) {
Expand Down Expand Up @@ -519,10 +519,12 @@ function VariantsResults (props) {

if (token === null) {
console.log('Querying without token')
console.log(jsonData1)
res = await axios.post(
configData.API_URL + '/g_variants',
jsonData1
)
console.log(res)
} else {
const headers = { Authorization: `Bearer ${token}` }
res = await axios.post(
Expand Down
12 changes: 12 additions & 0 deletions frontend/src/components/Layout/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,10 @@ function Layout (props) {
referenceBases2={referenceBases2}
aminoacid={aminoacid}
geneID={geneID}
variantMaxLength={variantMaxLength}
variantMaxLength2={variantMaxLength2}
variantMinLength={variantMinLength}
variantMinLength2={variantMinLength2}
/>
</div>
)}
Expand Down Expand Up @@ -1739,6 +1743,10 @@ function Layout (props) {
referenceBases2={referenceBases2}
aminoacid={aminoacid}
geneID={geneID}
variantMaxLength={variantMaxLength}
variantMaxLength2={variantMaxLength2}
variantMinLength={variantMinLength}
variantMinLength2={variantMinLength2}
/>
</div>
)}
Expand Down Expand Up @@ -1772,6 +1780,10 @@ function Layout (props) {
referenceBases2={referenceBases2}
aminoacid={aminoacid}
geneID={geneID}
variantMaxLength={variantMaxLength}
variantMaxLength2={variantMaxLength2}
variantMinLength={variantMinLength}
variantMinLength2={variantMinLength2}
/>
</div>
)}
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/components/Layout/LayoutVariantsTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,18 @@ input:focus-visible + label {
max-width: 65em;
}

@media (max-width: 980px) {
.tabset {
margin-top: 16px;
}

}

@media (max-width: 380px) {
.tabset {
display: flex;
flex-direction: column;
margin-top: 16px;
}

.tabset > input:checked + label {
Expand Down

0 comments on commit 232670d

Please sign in to comment.