Skip to content

Commit

Permalink
resolve remaining checks
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Apr 17, 2024
1 parent 3058ecb commit 69e4156
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
2 changes: 2 additions & 0 deletions src/common/Dropdown2.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
<!-- Element to Trigger Dropdown -->
<div class="dropdownContainer" class:open={isOpen} {id}>
<div
role="button"
tabindex={0}
bind:this={title}
class={`title ${titleColor}`}
class:open={isOpen}
Expand Down
8 changes: 4 additions & 4 deletions src/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export const CSRF_HEADER_NAME = "X-CSRFToken";

export const POLL_INTERVAL = 5000;

/**
* @type {Array<[string, number]>}
*/
export const IMAGE_WIDTHS_ENTRIES = [
["xlarge", 2000],
["large", 1000],
Expand All @@ -59,10 +62,7 @@ export const IMAGE_WIDTHS_ENTRIES = [
["thumbnail", 60],
];

export const IMAGE_WIDTHS = IMAGE_WIDTHS_ENTRIES.map(([name, width]) => [
width,
name,
]).sort((a, b) => a[0] - b[0]);
export const IMAGE_WIDTHS = IMAGE_WIDTHS_ENTRIES.sort((a, b) => a[1] - b[1]);

export const IMAGE_WIDTHS_MAP = new Map(IMAGE_WIDTHS_ENTRIES);

Expand Down
7 changes: 0 additions & 7 deletions src/lib/components/forms/DocumentUpload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -472,13 +472,6 @@
background: var(--blue-1);
}
.excessiveFileSize {
padding: 0.25rem;
border-radius: 0.25rem;
color: var(--red-dark);
font-size: var(--font-s);
}
.drop-instructions {
color: var(--gray-5, #233944);
text-align: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
import * as documents from "@/lib/api/documents";
import * as notesApi from "$lib/api/notes";

/** @type {import('./$types').PageLoad} */
export async function load({ params, url, fetch }) {
const [document, note] = await Promise.all([
documents.get(+params.id, fetch),
notesApi.get(+params.id, params.note_id, fetch),
notesApi.get(+params.id, parseInt(params.note_id), fetch),
]);

return {
Expand Down
2 changes: 0 additions & 2 deletions src/routes/(embed)/documents/[id]/pages/[page]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@
{#each shimPlacements as s}
<div
class="dc-embed-shim"
on:click={() => (active = null)}
style="left:{s[0] * 100}%;top:{s[1] * 100}%;right:{(1 - s[2]) *
100}%;bottom:{(1 - s[3]) * 100}%"
tabindex="-1"
role="dialog"
aria-modal="true"
on:keydown={onKeyup}
/>
{/each}

Expand Down

0 comments on commit 69e4156

Please sign in to comment.