fix: prevents document sidebar from collapsing

This commit is contained in:
Jacob Fletcher
2023-10-23 17:01:50 -04:00
parent 9c250d57a4
commit 71a3e5ba10
2 changed files with 15 additions and 0 deletions

View File

@@ -7,6 +7,10 @@
&--has-sidebar {
.document-fields {
&__main {
width: 66.66%;
}
&__edit {
[dir='ltr'] & {
top: 0;
@@ -52,6 +56,7 @@
width: 33.33%;
height: calc(100vh - var(--doc-controls-height));
min-width: var(--doc-sidebar-width);
flex-shrink: 0;
}
&__sidebar {

View File

@@ -12,6 +12,16 @@ const TabsFields: CollectionConfig = {
},
versions: true,
fields: [
{
name: 'sidebarField',
type: 'text',
label: 'Sidebar Field',
admin: {
position: 'sidebar',
description:
'This should not collapse despite there being many tabs pushing the main fields open.',
},
},
{
type: 'tabs',
tabs: [