Skip to content

Commit

Permalink
Quick pass at adding line numbers to dispatch table quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Griffiths committed Jan 8, 2025
1 parent 0f90dc6 commit 49f71b7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/components/RescueDetails/RescueDetails.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,26 @@
}

.infoValue.infoGroup.quote {
padding: 0 0.8rem;
position: relative;

padding: 0 0.8rem 0 calc(27px + 0.8rem);

white-space: nowrap;

.quoteIndex {
position: absolute;
top: 0;
bottom: 0;
left: 0;

width: 27px;
padding: 0.8rem 0.5rem;

background-color: #555555;

text-align: right;
}

.quoteAuthorVia,
.quoteAuthor,
.quoteTime {
Expand Down
3 changes: 3 additions & 0 deletions src/components/RescueDetails/RescueDetailsContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ function RescueDetailsContent (props) {
: (<td />)
}
<td className={[styles.infoValue, styles.infoGroup, styles.quote]}>
<span className={styles.quoteIndex}>
{index}
</span>
<span className={styles.quoteAuthor}>
{`<${quoteSender}>`}
</span>
Expand Down

0 comments on commit 49f71b7

Please sign in to comment.