diff --git a/config/sections/mixins/layout.php b/config/sections/mixins/layout.php index 1cd41bf48e..654ce3840f 100644 --- a/config/sections/mixins/layout.php +++ b/config/sections/mixins/layout.php @@ -94,15 +94,6 @@ ]; } - if ($this->type === 'pages') { - $columns['flag'] = [ - 'label' => ' ', - 'mobile' => true, - 'type' => 'flag', - 'width' => 'var(--table-row-height)', - ]; - } - return $columns; }, ], diff --git a/panel/lab/components/fieldpreviews/flag/index.php b/panel/lab/components/fieldpreviews/flag/index.php deleted file mode 100644 index 2e31d7db5d..0000000000 --- a/panel/lab/components/fieldpreviews/flag/index.php +++ /dev/null @@ -1,5 +0,0 @@ - 'k-flag-field-preview', -]; diff --git a/panel/lab/components/fieldpreviews/flag/index.vue b/panel/lab/components/fieldpreviews/flag/index.vue deleted file mode 100644 index 73a826267d..0000000000 --- a/panel/lab/components/fieldpreviews/flag/index.vue +++ /dev/null @@ -1,35 +0,0 @@ - diff --git a/panel/src/components/Collection/Items.vue b/panel/src/components/Collection/Items.vue index 9c138cc400..f9abd612f8 100644 --- a/panel/src/components/Collection/Items.vue +++ b/panel/src/components/Collection/Items.vue @@ -15,6 +15,27 @@ > + + + + @@ -235,4 +256,15 @@ export default { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); } } + +.k-table .k-items-table-layout-buttons-column { + padding: 0; + width: var(--table-row-height); + text-align: center; +} +.k-table .k-items-table-layout-buttons-column .k-button { + --button-width: 100%; + --button-height: 100%; + outline-offset: -2px; +} diff --git a/panel/src/components/Forms/Previews/FlagFieldPreview.vue b/panel/src/components/Forms/Previews/FlagFieldPreview.vue deleted file mode 100644 index cb4ef92f01..0000000000 --- a/panel/src/components/Forms/Previews/FlagFieldPreview.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/panel/src/components/Forms/Previews/index.js b/panel/src/components/Forms/Previews/index.js index 09a1801232..fbb07fbe07 100644 --- a/panel/src/components/Forms/Previews/index.js +++ b/panel/src/components/Forms/Previews/index.js @@ -25,7 +25,6 @@ export default { app.component("k-date-field-preview", DateFieldPreview); app.component("k-email-field-preview", EmailFieldPreview); app.component("k-files-field-preview", FilesFieldPreview); - app.component("k-flag-field-preview", FlagFieldPreview); app.component("k-html-field-preview", HtmlFieldPreview); app.component("k-image-field-preview", ImageFieldPreview); app.component("k-link-field-preview", LinkFieldPreview); diff --git a/panel/src/components/Layout/Table.vue b/panel/src/components/Layout/Table.vue index 2ac44410c8..c9e60b5266 100644 --- a/panel/src/components/Layout/Table.vue +++ b/panel/src/components/Layout/Table.vue @@ -43,6 +43,8 @@ + + + +