refactor(frontend): apply formatter, linter
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
import { fileInlineUrl } from '$lib/api/endpoints/files';
|
||||
import type { FileItem, FolderItem } from '$lib/api/types';
|
||||
import { lazyComponent } from '$lib/composables/lazyComponent.svelte';
|
||||
import CommandPalette from '$lib/components/CommandPalette.svelte';
|
||||
import DrivePicker from '$lib/components/DrivePicker.svelte';
|
||||
import Icon from '$lib/icons/Icon.svelte';
|
||||
import { iconNameFromClass } from '$lib/utils/display';
|
||||
|
||||
@@ -331,10 +331,7 @@
|
||||
{#if showOwner}
|
||||
<div class="owner-cell">
|
||||
{#if entry.ownerId}
|
||||
<UserVignette
|
||||
userId={entry.ownerId}
|
||||
fallbackLabel={entry.ownerName ?? undefined}
|
||||
/>
|
||||
<UserVignette userId={entry.ownerId} fallbackLabel={entry.ownerName ?? undefined} />
|
||||
{:else}
|
||||
<span class="owner-cell__placeholder">{entry.ownerName ?? '—'}</span>
|
||||
{/if}
|
||||
|
||||
@@ -68,10 +68,7 @@
|
||||
<div class="card">
|
||||
<h2>{t('drive.not_found_title', 'Drive not found')}</h2>
|
||||
<p class="muted">
|
||||
{t(
|
||||
'drive.not_found_body',
|
||||
"This drive doesn't exist or you don't have access to it."
|
||||
)}
|
||||
{t('drive.not_found_body', "This drive doesn't exist or you don't have access to it.")}
|
||||
</p>
|
||||
<a class="link" href="/files">{t('drive.back_to_files', 'Back to Files')}</a>
|
||||
</div>
|
||||
@@ -124,7 +121,13 @@
|
||||
</div>
|
||||
</div>
|
||||
{#if drive.quota_bytes && drive.quota_bytes > 0}
|
||||
<div class="bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow={Math.round(storagePct)}>
|
||||
<div
|
||||
class="bar"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
aria-valuenow={Math.round(storagePct)}
|
||||
>
|
||||
<div class="bar__fill" style:width="{storagePct}%"></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user