Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nos Hs2023
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Språksamlingane
stadnamn
Nos Hs2023
Commits
9c9e63ba
Commit
9c9e63ba
authored
3 years ago
by
esikkala
Browse files
Options
Downloads
Patches
Plain Diff
InstanceHomePageTable: tune layout for xs screens
parent
e153c0e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/client/components/main_layout/InstanceHomePageTable.js
+15
-8
15 additions, 8 deletions
src/client/components/main_layout/InstanceHomePageTable.js
with
15 additions
and
8 deletions
src/client/components/main_layout/InstanceHomePageTable.js
+
15
−
8
View file @
9c9e63ba
...
@@ -15,9 +15,12 @@ import InfoIcon from '@material-ui/icons/InfoOutlined'
...
@@ -15,9 +15,12 @@ import InfoIcon from '@material-ui/icons/InfoOutlined'
const
styles
=
theme
=>
({
const
styles
=
theme
=>
({
instanceTable
:
{
instanceTable
:
{
// maxWidth: 1000,
maxWidth
:
800
,
// width: '100%',
width
:
'
100%
'
,
// height: '100%',
[
theme
.
breakpoints
.
down
(
'
md
'
)]:
{
tableLayout
:
'
fixed
'
,
overflowWrap
:
'
break-word
'
},
borderTop
:
'
1px solid rgba(224, 224, 224, 1);
'
borderTop
:
'
1px solid rgba(224, 224, 224, 1);
'
},
},
divider
:
{
divider
:
{
...
@@ -34,9 +37,9 @@ const styles = theme => ({
...
@@ -34,9 +37,9 @@ const styles = theme => ({
alignItems
:
'
center
'
,
alignItems
:
'
center
'
,
justifyContent
:
'
center
'
justifyContent
:
'
center
'
},
},
labelCell
:
{
//
labelCell: {
w
idth
:
2
4
0
// maxW
idth: 2
5
0
},
//
},
tooltip
:
{
tooltip
:
{
marginTop
:
-
3
marginTop
:
-
3
},
},
...
@@ -108,7 +111,7 @@ class InstanceHomePageTable extends React.Component {
...
@@ -108,7 +111,7 @@ class InstanceHomePageTable extends React.Component {
}
}
render
=
()
=>
{
render
=
()
=>
{
const
{
classes
,
data
,
resultClass
,
properties
}
=
this
.
props
const
{
classes
,
data
,
resultClass
,
properties
,
screenSize
}
=
this
.
props
return
(
return
(
<>
<>
{
data
&&
{
data
&&
...
@@ -118,9 +121,13 @@ class InstanceHomePageTable extends React.Component {
...
@@ -118,9 +121,13 @@ class InstanceHomePageTable extends React.Component {
const
label
=
intl
.
get
(
`perspectives.
${
resultClass
}
.properties.
${
row
.
id
}
.label`
)
const
label
=
intl
.
get
(
`perspectives.
${
resultClass
}
.properties.
${
row
.
id
}
.label`
)
const
description
=
intl
.
get
(
`perspectives.
${
resultClass
}
.properties.
${
row
.
id
}
.description`
)
const
description
=
intl
.
get
(
`perspectives.
${
resultClass
}
.properties.
${
row
.
id
}
.description`
)
const
{
const
{
id
,
valueType
,
makeLink
,
externalLink
,
sortValues
,
sortBy
,
numberedList
,
previewImageHeight
,
id
,
valueType
,
makeLink
,
externalLink
,
sortValues
,
sortBy
,
numberedList
,
linkAsButton
,
collapsedMaxWords
,
showSource
,
sourceExternalLink
,
renderAsHTML
,
HTMLParserTask
linkAsButton
,
collapsedMaxWords
,
showSource
,
sourceExternalLink
,
renderAsHTML
,
HTMLParserTask
}
=
row
}
=
row
let
{
previewImageHeight
}
=
row
if
(
screenSize
===
'
xs
'
||
screenSize
===
'
sm
'
)
{
previewImageHeight
=
50
}
const
expanded
=
this
.
state
.
expandedRows
.
has
(
row
.
id
)
const
expanded
=
this
.
state
.
expandedRows
.
has
(
row
.
id
)
return
(
return
(
<
TableRow
key
=
{
row
.
id
}
>
<
TableRow
key
=
{
row
.
id
}
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment