Skip to content

Commit

Permalink
Fix test and check
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Dec 10, 2024
1 parent e6cd65a commit 7fc9457
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/documents/DocumentListItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ If we're in an embed, we want to open links to documents in new tabs and hide th
width: 100%;
}
.fullDescription {
/* .fullDescription {
line-clamp: unset;
-webkit-line-clamp: unset;
}
} */
.access {
flex: 0 0 auto;
Expand Down
10 changes: 6 additions & 4 deletions src/lib/components/documents/ResultsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
type Writable,
} from "svelte/store";
import {
defaultVisibleFields,
type VisibleFields,
} from "./VisibleFields.svelte";
// IDs might be strings or numbers, depending on the API endpoint
// enforce type consistency here to avoid comparison bugs later
export const visible: Writable<Map<string, Document>> = writable(new Map());
Expand Down Expand Up @@ -43,10 +48,7 @@
import { Search24 } from "svelte-octicons";
import Button from "../common/Button.svelte";
import DocumentListItem, {
defaultVisibleFields,
type VisibleFields,
} from "./DocumentListItem.svelte";
import DocumentListItem from "./DocumentListItem.svelte";
import Empty from "../common/Empty.svelte";
import Flex from "../common/Flex.svelte";
import NoteHighlights from "./NoteHighlights.svelte";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<script context="module" lang="ts">
import { Story, Template } from "@storybook/addon-svelte-csf";
import DocumentListItem, {
defaultVisibleFields,
} from "../DocumentListItem.svelte";
import DocumentListItem from "../DocumentListItem.svelte";
import { defaultVisibleFields } from "../VisibleFields.svelte";
import document from "@/test/fixtures/documents/document.json";
import expanded from "@/test/fixtures/documents/document-expanded.json";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
exports[`DocumentListItem > renders 1`] = `
<div>
<div
class="document-list-item svelte-1wz2dv3"
class="document-list-item svelte-145vmhw"
>
<a
class="document-link thumbnail-link svelte-1wz2dv3"
class="document-link thumbnail-link svelte-145vmhw"
href="https://www.dev.documentcloud.org/documents/24002098-quarterly-reports-created-pursuant-to-the-letter-from-the-national-archives-and-records-administration-dated-june-1-2018/"
>
<div
Expand All @@ -25,24 +25,24 @@ exports[`DocumentListItem > renders 1`] = `
</a>
<div
class="document-info svelte-1wz2dv3"
class="document-info svelte-145vmhw"
>
<div
class="head svelte-1wz2dv3"
class="head svelte-145vmhw"
>
<h3
class="title svelte-1wz2dv3"
class="title svelte-145vmhw"
>
<a
class="document-link title-link svelte-1wz2dv3"
class="document-link title-link svelte-145vmhw"
href="https://www.dev.documentcloud.org/documents/24002098-quarterly-reports-created-pursuant-to-the-letter-from-the-national-archives-and-records-administration-dated-june-1-2018/"
>
Quarterly Reports created pursuant to the letter from the National Archives and Records Administration dated June 1, 2018
</a>
</h3>
<div
class="access svelte-1wz2dv3"
class="access svelte-145vmhw"
>
<div
class="access public svelte-o63adk"
Expand All @@ -66,10 +66,10 @@ exports[`DocumentListItem > renders 1`] = `
</div>
<p
class="meta svelte-1wz2dv3"
class="meta svelte-145vmhw"
>
<a
class="document-link svelte-1wz2dv3"
class="document-link svelte-145vmhw"
href="https://www.dev.documentcloud.org/documents/24002098-quarterly-reports-created-pursuant-to-the-letter-from-the-national-archives-and-records-administration-dated-june-1-2018/?mode=grid"
>
20 pages
Expand All @@ -86,10 +86,11 @@ exports[`DocumentListItem > renders 1`] = `
<div
class="data svelte-1wz2dv3"
class="data svelte-145vmhw"
>
</div>
</div>
</div>
Expand Down

0 comments on commit 7fc9457

Please sign in to comment.