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] Fix Table Fieldtype in dark mode #10484

Merged
merged 1 commit into from
Jul 19, 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
6 changes: 3 additions & 3 deletions resources/js/components/fieldtypes/TableFieldtype.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<portal name="table-fullscreen" :disabled="!fullScreenMode" target-class="table-fieldtype">
<div class="table-fieldtype-container" :class="{'table-fullscreen bg-white': fullScreenMode }">
<header class="bg-gray-200 border-b py-3 rtl:pr-3 ltr:pl-3 flex items-center justify-between relative" v-if="fullScreenMode">
<div class="table-fieldtype-container" :class="{'table-fullscreen bg-white dark:bg-dark-700': fullScreenMode }">
<header class="bg-gray-200 dark:bg-dark-550 border-b dark:border-dark-900 py-3 rtl:pr-3 ltr:pl-3 flex items-center justify-between relative" v-if="fullScreenMode">
<h2 v-text="__(config.display)" />
<button class="btn-close absolute top-2 rtl:left-5 ltr:right-5" @click="fullScreenMode = false" :aria-label="__('Exit Fullscreen Mode')">&times;</button>
</header>
<section :class="{'p-4': fullScreenMode}">
<section :class="{'p-4 dark:bg-dark-700': fullScreenMode}">
<table class="table-fieldtype-table" v-if="rowCount">
<thead>
<tr>
Expand Down
Loading