Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
Bielefeld-CeBiTec
Commits
1f09e47f
Commit
1f09e47f
authored
4 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
Figure Layout und ein paar Result Layout fixes
parent
e529afc6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#529858
failed
4 months ago
Stage: build
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/App/App.css
+39
-16
39 additions, 16 deletions
src/App/App.css
src/components/Figures.tsx
+43
-24
43 additions, 24 deletions
src/components/Figures.tsx
src/components/Table.tsx
+2
-2
2 additions, 2 deletions
src/components/Table.tsx
src/contents/results.tsx
+177
-165
177 additions, 165 deletions
src/contents/results.tsx
with
261 additions
and
207 deletions
src/App/App.css
+
39
−
16
View file @
1f09e47f
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
--markmap-a-color
:
var
(
--text-primary
)
!important
;
--markmap-a-color
:
var
(
--text-primary
)
!important
;
--node-size
:
60px
;
--node-size
:
60px
;
--simple-margin
:
20px
;
}
}
html
{
html
{
scroll-behavior
:
smooth
;
scroll-behavior
:
smooth
;
...
@@ -3967,17 +3968,6 @@ height: min-content !important;
...
@@ -3967,17 +3968,6 @@ height: min-content !important;
}
}
figure
{
align-self
:
center
;
display
:
table
;
text-align
:
center
;
font-style
:
italic
;
font-size
:
medium
;
text-indent
:
0
;
margin
:
0.5em
;
}
figcaption
{
figcaption
{
display
:
table-caption
;
display
:
table-caption
;
caption-side
:
bottom
;
caption-side
:
bottom
;
...
@@ -3991,11 +3981,7 @@ figure .row div{
...
@@ -3991,11 +3981,7 @@ figure .row div{
justify-content
:
center
;
justify-content
:
center
;
}
}
.figure-wrapper
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
figure
img
{
figure
img
{
object-fit
:
cover
!important
;
object-fit
:
cover
!important
;
...
@@ -4163,4 +4149,41 @@ figure img{
...
@@ -4163,4 +4149,41 @@ figure img{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
}
.figure-wrapper
{
border-color
:
var
(
--darkerbeige
);
border-width
:
5px
;
background-color
:
white
;
border-style
:
solid
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
margin-top
:
var
(
--simple-margin
);
margin-bottom
:
var
(
--simple-margin
);
}
figure
{
align-self
:
center
;
text-align
:
center
;
font-style
:
italic
;
font-size
:
medium
;
text-indent
:
0
;
display
:
grid
!important
;
width
:
100%
;
text-align
:
center
;
margin
:
0
!important
;
}
.responsive-image
{
margin
:
auto
;
padding-left
:
var
(
--simple-margin
);
padding-right
:
var
(
--simple-margin
);
margin-top
:
var
(
--simple-margin
);
margin-bottom
:
var
(
--simple-margin
);
align-self
:
center
!important
;
max-height
:
40vh
;
/* Set the maximum height for tall images */
width
:
auto
;
/* Keeps the image's aspect ratio */
max-width
:
100%
;
/* Limits the width to container's width */
object-fit
:
contain
!important
;
/* Adds space around the image if it's narrower than the container */
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/components/Figures.tsx
+
43
−
24
View file @
1f09e47f
...
@@ -5,81 +5,100 @@ interface FigureProps{
...
@@ -5,81 +5,100 @@ interface FigureProps{
pic4
?:
string
,
pic4
?:
string
,
pic5
?:
string
,
pic5
?:
string
,
pic6
?:
string
,
pic6
?:
string
,
alt1
:
string
,
description
:
React
.
ReactNode
|
string
,
description
:
React
.
ReactNode
|
string
,
num
:
string
|
number
;
num
:
string
|
number
;
}
}
export
function
ThreeVertical
({
description
,
num
,
pic1
,
pic2
,
pic3
}:
FigureProps
){
export
function
ThreeVertical
({
description
,
num
,
pic1
,
pic2
,
pic3
,
alt1
}:
FigureProps
){
return
(
return
(
<
figure
>
<
div
className
=
"figure-wrapper"
>
<
img
src
=
{
pic1
}
/>
<
figure
>
<
img
src
=
{
pic2
}
/>
<
img
src
=
{
pic1
}
alt
=
{
alt1
}
className
=
"responsive-image"
/>
<
img
src
=
{
pic3
}
/>
<
img
src
=
{
pic2
}
className
=
"responsive-image"
/>
<
figcaption
><
b
>
Figure
{
num
}
.
</
b
>
<
span
>
{
description
}
</
span
></
figcaption
>
<
img
src
=
{
pic3
}
className
=
"responsive-image"
/>
</
figure
>
<
figcaption
><
b
>
Figure
{
num
}
.
</
b
>
<
span
>
{
description
}
</
span
></
figcaption
>
</
figure
>
</
div
>
)
)
}
}
export
function
TwoVertical
({
description
,
num
,
pic1
,
pic2
}:
FigureProps
){
export
function
TwoVertical
({
description
,
num
,
pic1
,
pic2
,
alt1
}:
FigureProps
){
return
(
return
(
<
div
className
=
"figure-wrapper"
>
<
figure
>
<
figure
>
<
img
src
=
{
pic1
}
/>
<
img
src
=
{
pic1
}
alt
=
{
alt1
}
className
=
"responsive-image"
/>
<
img
src
=
{
pic2
}
/>
<
img
src
=
{
pic2
}
className
=
"responsive-image"
/>
<
figcaption
><
b
>
Figure
{
num
}
.
</
b
>
<
span
>
{
description
}
</
span
></
figcaption
>
<
figcaption
><
b
>
Figure
{
num
}
.
</
b
>
<
span
>
{
description
}
</
span
></
figcaption
>
</
figure
>
</
figure
>
</
div
>
)
)
}
}
export
function
TwoHorizontal
({
description
,
num
,
pic1
,
pic2
}:
FigureProps
){
export
function
TwoHorizontal
({
description
,
num
,
pic1
,
pic2
,
alt1
}:
FigureProps
){
return
(
return
(
<
div
className
=
"figure-wrapper"
>
<
figure
>
<
figure
>
<
div
className
=
"row align-items-center"
>
<
div
className
=
"row align-items-center"
>
<
div
className
=
"col"
>
<
div
className
=
"col"
>
<
img
src
=
{
pic1
}
/>
<
img
src
=
{
pic1
}
alt
=
{
alt1
}
className
=
"responsive-image"
/>
</
div
>
</
div
>
<
div
className
=
"col"
>
<
div
className
=
"col"
>
<
img
src
=
{
pic2
}
/>
<
img
src
=
{
pic2
}
className
=
"responsive-image"
/>
</
div
>
</
div
>
</
div
>
</
div
>
<
figcaption
><
b
>
Figure
{
num
}
.
</
b
>
<
span
>
{
description
}
</
span
></
figcaption
>
<
figcaption
><
b
>
Figure
{
num
}
.
</
b
>
<
span
>
{
description
}
</
span
></
figcaption
>
</
figure
>
</
figure
>
</
div
>
)
)
}
}
export
function
ThreeHorizontal
({
description
,
num
,
pic1
,
pic2
,
pic3
}:
FigureProps
){
export
function
ThreeHorizontal
({
description
,
num
,
pic1
,
pic2
,
pic3
,
alt1
}:
FigureProps
){
return
(
return
(
<
div
className
=
"figure-wrapper"
>
<
figure
>
<
figure
>
<
div
className
=
"row align-items-center"
>
<
div
className
=
"row align-items-center"
>
<
div
className
=
"col"
>
<
div
className
=
"col"
>
<
img
src
=
{
pic1
}
/>
<
img
src
=
{
pic1
}
alt
=
{
alt1
}
className
=
"responsive-image"
/>
</
div
>
</
div
>
<
div
className
=
"col"
>
<
div
className
=
"col"
>
<
img
src
=
{
pic2
}
/>
<
img
src
=
{
pic2
}
className
=
"responsive-image"
/>
</
div
>
</
div
>
<
div
className
=
"col"
>
<
div
className
=
"col"
>
<
img
src
=
{
pic3
}
/>
<
img
src
=
{
pic3
}
className
=
"responsive-image"
/>
</
div
>
</
div
>
</
div
>
</
div
>
<
figcaption
><
b
>
Figure
{
num
}
.
</
b
>
<
span
>
{
description
}
</
span
></
figcaption
>
<
figcaption
><
b
>
Figure
{
num
}
.
</
b
>
<
span
>
{
description
}
</
span
></
figcaption
>
</
figure
>
</
figure
>
</
div
>
)
)
}
}
export
function
OneFigure
({
description
,
num
,
pic1
}:
FigureProps
){
export
function
OneFigure
({
description
,
num
,
pic1
,
alt1
}:
FigureProps
){
return
(
return
(
<
figure
>
<
div
className
=
"figure-wrapper"
>
<
div
className
=
"row align-items-center"
>
<
div
className
=
"col"
>
<
figure
>
<
img
src
=
{
pic1
}
/>
<
img
src
=
{
pic1
}
alt
=
{
alt1
}
className
=
"responsive-image"
/>
</
div
>
</
div
>
<
figcaption
><
b
>
Figure
{
num
}
.
</
b
>
<
span
>
{
description
}
</
span
></
figcaption
>
<
figcaption
><
b
>
Figure
{
num
}
.
</
b
>
<
span
>
{
description
}
</
span
></
figcaption
>
</
figure
>
</
figure
>
</
div
>
)
)
}
}
This diff is collapsed.
Click to expand it.
src/components/Table.tsx
+
2
−
2
View file @
1f09e47f
...
@@ -21,7 +21,7 @@ export function PartTable({data, cols}: {data: Array<Part>, cols: Array<string>}
...
@@ -21,7 +21,7 @@ export function PartTable({data, cols}: {data: Array<Part>, cols: Array<string>}
return
(
return
(
<
div
className
=
"flex flex-col"
>
<
div
className
=
"flex flex-col"
>
<
div
className
=
"min-w-full overflow-x-auto"
>
<
div
className
=
"min-w-full overflow-x-auto"
>
<
div
className
=
"inline-block min-w-full
py-4
"
>
<
div
className
=
"inline-block min-w-full"
>
<
div
className
=
"overflow-hidden p-2"
>
<
div
className
=
"overflow-hidden p-2"
>
<
table
className
=
"text-center parttable"
>
<
table
className
=
"text-center parttable"
>
<
thead
className
=
"bg-d"
>
<
thead
className
=
"bg-d"
>
...
@@ -62,7 +62,7 @@ export function ResTable({data, cols}: {data: Array<Res>, cols: Array<string>}){
...
@@ -62,7 +62,7 @@ export function ResTable({data, cols}: {data: Array<Res>, cols: Array<string>}){
return
(
return
(
<
div
className
=
"flex flex-col"
>
<
div
className
=
"flex flex-col"
>
<
div
className
=
"min-w-full overflow-x-auto"
>
<
div
className
=
"min-w-full overflow-x-auto"
>
<
div
className
=
"inline-block min-w-full
py-4
"
>
<
div
className
=
"inline-block min-w-full"
>
<
div
className
=
"overflow-hidden p-2"
>
<
div
className
=
"overflow-hidden p-2"
>
<
table
className
=
"text-center restable"
>
<
table
className
=
"text-center restable"
>
<
thead
className
=
"bg-d"
>
<
thead
className
=
"bg-d"
>
...
...
This diff is collapsed.
Click to expand it.
src/contents/results.tsx
+
177
−
165
View file @
1f09e47f
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