super-table
super-table copied to clipboard
Display issue when creating / editing content with Super Table
Description We have an issue occurring with how Super Table displays on a site. I manage the site for my client, the owner.
Here’s a screenshot of what occurs:
I hacked a fix for it previously by editing web/cpresources/33c1aca/css/super-table.css
I made changes to the CSS as follows,
.superTable-layout-row-new-body {
display: block; /*inspired was "grid" */
grid-template-columns: auto 1fr 46px
padding-right: 35px /*inspired - added*/
}
.superTable-layout-row-new-field {
border-left: 1px solid #e0e4e7;
padding: 4px 10px;
border-top: 1px solid rgba(51, 64, 77, 0.1);
background: #fff
padding-right: 13px !important; /*inspired - added*/
}
But after a recent update (AFAIK), the issue has started to occur again.
~~I originally thought it's likely because the CSS file I edit has been replaced during an upgrade. But I now see that the file is in tact, with my changes. So I am not sure why it's occurring again, and ~~I would like to get to the bottom of it.
UPDATE: I see that the CSS file in question is in fact refreshed from the update, but calls from another location. I guess that's something to do with how Craft handles internal file version control (something I know nothing about). As it now loads that file from, web/cpresources/8e5cda20/css/super-table.css
I discovered previously when this layout issue occurred, that when running the "Check Content Tables” tool in Super Table, I end up in an endless loop of fixes. As in, I select to fix them, but them more issues are found, then those are fixed, etc., and eventually it starts repeating itself. Here’s a copy of some of the reported issues, which never actually fix.
(From a couple of months ago)
> ERROR: Blocktype field #52 is not a Super Table field ...
> ERROR: Blocktype field #312 is not a Super Table field ...
> ERROR: #297 has inconsistent field settings in its project config …
Then … (after first attempt at “Fix Content Tables”)
> Super Table field #123 has content table {{%stc_homeimagecarouselsection}} ...
> Super Table field #195 has content table {{%stc_homeintrotextsection}} ...
> Super Table field #231 has content table {{%stc_address}} ...
> Super Table field #248 has content table {{%stc_notfoundpage}} ...
> Super Table field #287 has content table {{%stc_pagehero}} ...
> Super Table field #297 has content table {{%stc_socialmedialinks}} ...
> Super Table field #29 has content table {{%stc_contentblocks}} ...
> Super Table field #42 has content table {{%stc_sectionheading}} ...
> Super Table field #359 has content table {{%stc_82_columns}} ...
> Super Table field #367 has content table {{%stc_82_sectionsettings}} ...
> Super Table field #473 has content table {{%stc_82_leftsidebar}} ...
> Super Table field #480 has content table {{%stc_108_sectioncontent}} ...
> ERROR: Blocktype field #52 is not a Super Table field ...
> ERROR: Blocktype field #312 is not a Super Table field ...
Fixes complete.
Then … more errors:
> ERROR: Unable to find owner Matrix block ID for #7 ...
> ERROR: Unable to find owner Matrix block ID for #7 ...
> Super Table field #52 skipped as it isn't a Super Table field, it's a craft\fields\Assets. Block type #6 ...
> Super Table field #123 re-saved ...
> Super Table field #195 re-saved ...
> Super Table field #231 re-saved ...
> Super Table field #248 re-saved ...
> Super Table field #287 re-saved ...
> Super Table field #297 re-saved ...
> Super Table field #312 skipped as it isn't a Super Table field, it's a craft\fields\Matrix. Block type #17 ...
> Owner matrix field #312 re-saved ...
Field re-saving complete.
Then …
> Super Table field #123 has content table {{%stc_homeimagecarouselsection}} ...
> Super Table field #195 has content table {{%stc_homeintrotextsection}} ...
> Super Table field #231 has content table {{%stc_address}} ...
> Super Table field #248 has content table {{%stc_notfoundpage}} ...
> Super Table field #287 has content table {{%stc_pagehero}} ...
> Super Table field #297 has content table {{%stc_socialmedialinks}} ...
> Super Table field #29 has content table {{%stc_contentblocks}} ...
> Super Table field #42 has content table {{%stc_sectionheading}} ...
> Super Table field #359 has content table {{%stc_82_columns}} ...
> Super Table field #367 has content table {{%stc_82_sectionsettings}} ...
> Super Table field #473 has content table {{%stc_82_leftsidebar}} ...
> Super Table field #480 has content table {{%stc_108_sectioncontent}} ...
> ERROR: Blocktype field #52 is not a Super Table field ...
> ERROR: Blocktype field #312 is not a Super Table field ...
Fixes complete.
… and it continues on.
As of a recent update, the CSS changes I made have (I’m guessing) been over-written, and the issue is occurring again.
When I got to the Check Content Tables tool, I see exactly what I first saw the last time around. ..
> ERROR: Blocktype field #52 is not a Super Table field ...
> ERROR: Blocktype field #312 is not a Super Table field ...
> ERROR: #297 has inconsistent field settings in its project config ...
Steps to reproduce
- Create or edit new content with a Super Table in it.
- Issue occurs.
- Run the Check Content Tables tool, and errors are reported.
- Run the Fix Errors option, and they are reported as fix.
- Process process continues, seeming ad infinitum.
Additional info
- Plugin version: v2.6.4 (has been occurring in earlier versions)
- Craft version: v3.5.16 (has been occurring in earlier versions)
- Multi-site: No
Additional context