Skip to content

Commit

Permalink
updates for small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke committed Jan 24, 2025
1 parent d342dcc commit a8e65dd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
22 changes: 21 additions & 1 deletion packages/libs/web-common/src/styles/client.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ td.wdk-DataTableCell__thumbnail {

.eupathdb-RecordOverviewTitle {
display: flex;
flex-wrap: wrap;
gap: 0.5em;
align-items: baseline;
white-space: nowrap;
overflow: hidden;
Expand All @@ -147,7 +149,6 @@ td.wdk-DataTableCell__thumbnail {
.eupathdb-RecordOverviewDescription {
font-weight: 300;
font-size: 1.1em;
margin-left: 0.5em;
}

.eupathdb-RecordOverviewItem {
Expand Down Expand Up @@ -206,12 +207,31 @@ td.wdk-DataTableCell__thumbnail {
}
}

@media all and (max-width: 400px) {
.eupathdb-RecordOverview {
dl {
display: initial;
}
dd {
margin-bottom: 0.3em;
margin-left: 1ex;
}
dt.space-above + dd {
margin-top: 0;
}
}
}

.eupathdb-ReporterFormSubmit {
text-align: center;
margin: 1em 0;
}

@media all and (min-width: 800px) {
.eupathdb-RecordOverviewTitle {
flex-wrap: nowrap;
}

.eupathdb-ReporterFormWrapper {
width: fit-content;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,8 @@ export const RecordMainSection = connect(null)(
<div
style={{
position: 'absolute',
right: '3em',
top: '4em',
zIndex: 1,
right: 0,
top: '1em',
}}
>
<i className="fa fa-exclamation-triangle" />
Expand Down

0 comments on commit a8e65dd

Please sign in to comment.