Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Apply overflow styling to form submissions table #10036

Merged
merged 1 commit into from
May 10, 2024
Merged
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
50 changes: 26 additions & 24 deletions resources/js/components/forms/SubmissionListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@visible-columns-updated="visibleColumns = $event"
>
<div slot-scope="{ hasSelections }">
<div class="card overflow-hidden p-0 relative">
<div class="card overflow-scroll p-0 relative">
<div class="flex flex-wrap items-center justify-between px-2 pb-2 text-sm border-b">
<data-list-filter-presets
ref="presets"
Expand Down Expand Up @@ -64,29 +64,31 @@
@completed="actionCompleted"
/>

<data-list-table
v-if="items.length"
:allow-bulk-actions="true"
:allow-column-picker="true"
:column-preferences-key="preferencesKey('columns')"
@sorted="sorted"
>
<template slot="cell-datestamp" slot-scope="{ row: submission, value }">
<a :href="submission.url" class="text-blue">{{ value }}</a>
</template>
<template slot="actions" slot-scope="{ row: submission, index }">
<dropdown-list>
<dropdown-item :text="__('View')" :redirect="submission.url" />
<data-list-inline-actions
:item="submission.id"
:url="actionUrl"
:actions="submission.actions"
@started="actionStarted"
@completed="actionCompleted"
/>
</dropdown-list>
</template>
</data-list-table>
<div class="overflow-x-auto overflow-y-hidden">
<data-list-table
v-if="items.length"
:allow-bulk-actions="true"
:allow-column-picker="true"
:column-preferences-key="preferencesKey('columns')"
@sorted="sorted"
>
<template slot="cell-datestamp" slot-scope="{ row: submission, value }">
<a :href="submission.url" class="text-blue">{{ value }}</a>
</template>
<template slot="actions" slot-scope="{ row: submission, index }">
<dropdown-list>
<dropdown-item :text="__('View')" :redirect="submission.url" />
<data-list-inline-actions
:item="submission.id"
:url="actionUrl"
:actions="submission.actions"
@started="actionStarted"
@completed="actionCompleted"
/>
</dropdown-list>
</template>
</data-list-table>
</div>
</div>

<data-list-pagination
Expand Down
Loading