Commit 11f47be6 authored by Robert Knight's avatar Robert Knight

Add space between "p." and page number

This matches how page numbers are more typically written in e.g. citations.
parent d9a4287b
...@@ -173,7 +173,7 @@ function AnnotationHeader({ ...@@ -173,7 +173,7 @@ function AnnotationHeader({
)} )}
{pageNumber && ( {pageNumber && (
<span className="text-grey-6" data-testid="page-number"> <span className="text-grey-6" data-testid="page-number">
{showDocumentInfo && ', '}p.{pageNumber} {showDocumentInfo && ', '}p. {pageNumber}
</span> </span>
)} )}
</span> </span>
......
...@@ -478,7 +478,7 @@ describe('AnnotationHeader', () => { ...@@ -478,7 +478,7 @@ describe('AnnotationHeader', () => {
const wrapper = createAnnotationHeader({ annotation }); const wrapper = createAnnotationHeader({ annotation });
const pageNumber = wrapper.find('[data-testid="page-number"]'); const pageNumber = wrapper.find('[data-testid="page-number"]');
assert.isTrue(pageNumber.exists()); assert.isTrue(pageNumber.exists());
assert.equal(pageNumber.text(), 'p.11'); assert.equal(pageNumber.text(), 'p. 11');
}); });
it('should hide group name in sidebar', () => { it('should hide group name in sidebar', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment