Improve timer view styling

This commit is contained in:
manubo
2019-10-04 09:07:01 +02:00
parent 822c0672fb
commit a396a3b382
2 changed files with 15 additions and 6 deletions

View File

@@ -27,6 +27,7 @@ html {
font-weight: normal; font-weight: normal;
line-height: 1.5; line-height: 1.5;
margin-top: 1rem; margin-top: 1rem;
margin-bottom: 3rem;
} }
.text-red { .text-red {
@@ -108,14 +109,20 @@ html {
margin-top: 3rem; margin-top: 3rem;
h2 { h2 {
margin-top: 2rem;
max-height: 90px; max-height: 90px;
overflow: hidden; overflow: hidden;
} }
p { p {
margin-top: 0; margin-top: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
max-height: 16px; line-height: 1.2rem;
}
span.moco-bx-single-line {
display: inline-block;
max-height: 19px;
overflow: hidden; overflow: hidden;
} }

View File

@@ -11,11 +11,13 @@ export default function TimerView({ timedActivity, onStopTimer }) {
return ( return (
<div className="moco-bx-timer-view"> <div className="moco-bx-timer-view">
<p className="text-secondary" style={{ marginBottom: "0.5rem" }}> <p>
{timedActivity.customer_name} <span className="moco-bx-single-line text-secondary">{timedActivity.customer_name}</span>
<br />
<span className="moco-bx-single-line">{timedActivity.assignment_name}</span>
<br />
<span className="moco-bx-single-line">{timedActivity.task_name}</span>
</p> </p>
<p>{timedActivity.assignment_name}</p>
<p>{timedActivity.task_name}</p>
<h2>{timedActivity.description}</h2> <h2>{timedActivity.description}</h2>
<Timer <Timer
className="timer text-red" className="timer text-red"