Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions app/components/list/CardsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import { showError } from '@shared/utils/showError';
import { onMount } from 'svelte';
import { Writable, writable } from 'svelte/store';
import CardIcon from '~/components/common/CardIcon.svelte';
import CardListCell from '~/components/list/CardListCell.svelte';
import { DocFolder, OCRDocument } from '~/models/OCRDocument';
import {
Expand Down Expand Up @@ -471,26 +472,22 @@
</Template>

<stacklayout bind:this={fabHolder} slot="fab" class="fabHolder" marginBottom={Math.min(60, $windowInset.bottom)} orientation="horizontal">
<uibutton class={$hasCamera ? 'small-fab' : 'fab'} horizontalAlignment="center" text="mdi-plus" verticalAlignment="center" on:tap={throttle(() => onAddButton(), 500)} />
<uibutton class={$hasCamera ? 'small-fab' : 'fab'} horizontalAlignment="center" shape="round" text="mdi-plus" verticalAlignment="center" on:tap={throttle(() => onAddButton(), 500)} />
{#if $hasCamera}
<uibutton
<uisurface
backgroundColor={colorPrimaryContainer}
borderRadius={18}
color={colorOnPrimaryContainer}
android:elevation={3}
fontSize={15}
fontWeight="600"
height={56}
horizontalAlignment="center"
margin={16}
padding="0 20"
rippleColor={colorPrimaryContainer}
{...{ src: appIcon('camera') }}
text={lc('scan')}
variant="contained"
verticalAlignment="center"
on:tap={throttle(() => onStartCam(), 500)}
on:longPress={() => onStartCam(true)}
/>
>
<stacklayout orientation="horizontal" padding="0 24" verticalAlignment="center">
<CardIcon color={colorOnPrimaryContainer} size={24} src={appIcon('camera')} verticalAlignment="center" />
<label color={colorOnPrimaryContainer} fontSize={16} fontWeight="600" marginLeft={8} text={lc('scan')} verticalAlignment="center" />
</stacklayout>
</uisurface>
{/if}
</stacklayout>

Expand Down
Loading