Skip to content

Commit

Permalink
Fix Live Monitoring design issues
Browse files Browse the repository at this point in the history
- Related to hotosm#6219
  • Loading branch information
royallsilwallz committed Jan 29, 2024
1 parent c1a294f commit 9c5e4f1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
22 changes: 20 additions & 2 deletions frontend/src/views/projectLiveMonitoring.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

.top {
position: absolute;
top: 150px;
left: 20px;
top: 0.625rem;
left: 0.625rem;
z-index: 999;
}

Expand All @@ -17,3 +17,21 @@ svg.pl2 {
width: 19px !important;
margin-left: 0px;
}

.react-select__control {
border-radius: 0.25rem !important;
min-height: 36px !important;
width: 15.8rem;
}

.react-select__menu {
width: 15.8rem !important;
}

.title-text {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
18 changes: 10 additions & 8 deletions frontend/src/views/projectLiveMonitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,17 @@ export function ProjectLiveMonitoring() {
className="pr3"
>
<div className="cf w-100" style={{ height: 'calc(100vh - 5.5rem)' }}>
<div className="flex p-2">
<div style={{ flex: 2 }}>
<div className="flex p-2" style={{ gap: '0.685rem' }}>
<div style={{ flex: 2, position: 'relative' }}>
<div className="top">
<form>
<input
className="border px-2 py-2 text-sm"
className="border px-2 py-2 text-sm rounded"
type="text"
placeholder="key (ex: building=yes)"
ref={tagsInputRef}
defaultValue="building"
style={{ height: '36px' }}
/>
&nbsp;
<button
Expand Down Expand Up @@ -284,21 +285,21 @@ export function ProjectLiveMonitoring() {
{project && (
<>
<div className="flex flex-column flex-row-ns justify-start justify-between-ns items-start items-center-ns flex-wrap">
<div className="pt2">
<div className="pt2 title-text">
<span className="blue-light">
<Link to={`/projects/${project.projectId}`} className="no-underline pointer">
<span className="blue-light">#{project.projectId}</span>
</Link>
</span>
{project.organisationName ? (
<span className="blue-dark"> | {project.organisationName}</span>
<span className="blue-dark"> | {project.organisationName} </span>
) : null}
</div>
</div>
<div className="w-100 fl pv1 bg-white blue-dark">
<div>
<h3
className="f2 fw5 ttu barlow-condensed blue-dark dib mr3"
className="f2 fw5 ttu barlow-condensed blue-dark dib title-text"
lang={project.projectInfo.locale}
>
{project.projectInfo && project.projectInfo.name}
Expand Down Expand Up @@ -365,8 +366,9 @@ export function ProjectLiveMonitoring() {
style={{
display: 'flex',
flexFlow: 'column',
maxHeight: 'calc(100vh - 26rem)',
height: '8px',
flex: '1 1 auto',
overflowY: 'auto',
}}
tags={tags}
hashtag={'hotosm-project-' + id}
Expand All @@ -381,7 +383,7 @@ export function ProjectLiveMonitoring() {
}}
realtime={realtimeList}
config={config}
status={listAll ? "" : status}
status={listAll ? '' : status}
orderBy="created_at"
onFetchFirstTime={(mostRecentFeature) => {
if (mostRecentFeature) {
Expand Down

0 comments on commit 9c5e4f1

Please sign in to comment.