browsertrix/frontend
Emma Segal-Grossman 8a707e3b3a
Fix table grid column CSS variable, superadmin list menus being hidden/inoperable, and various other table tweaks (#2573)
Closes #2574
cc @SuaYoo 

## Changes

This adds an internal `--btrix-table-grid-template-columns--internal`
css property to `btrix-table` to set table grid cols, which uses the
`--btrix-table-grid-template-columns` value if defined and otherwise
defaults to the number of header cols **from within the css
declaration**, rather than using JS. In Chrome at least,
`this.style.getPropertyValue` wasn't picking up on css variables defined
outside of the custom component boundary, so this gets around that.

Other changes:
- Adds an additional column to the superadmin org list, as it was
missing one
- Fixes `overflow-dropdown` unintentionally setting its internal
button's size to `undefined` if `size` wasn't set on it
- Swaps the remaining tables to use
`--btrix-table-grid-template-columns` instead of directly setting
`grid-template-columns`
- Adds a min-width of `min-content` to the table container, because
doing so is necessary for left/right scrolling, and this is a common
enough pattern it seems that upstreaming this into the table itself
makes sense — it shouldn't cause breakages, this already generally is
the expected behaviour
- Allows tables to scroll left/right when necessary
- Fix padding/margin for a few left/right scrolling tables
- Allows primary column of collections list to shrink to a smaller min
width

## Testing

Test that none of the other tables are broken. I couldn't find any!
2025-04-29 21:00:16 -04:00
..
.husky
.storybook devex: Document workflow table components (#2558) 2025-04-23 19:31:34 -07:00
config devex: Document workflow table components (#2558) 2025-04-23 19:31:34 -07:00
docs Add custom behavior docs to user guide (#2559) 2025-04-23 14:27:39 -04:00
lib
patches
public Add basic opengraph & twitter card tags & image to browsertrix root (#2547) 2025-04-08 19:23:26 -04:00
scripts
src Fix table grid column CSS variable, superadmin list menus being hidden/inoperable, and various other table tweaks (#2573) 2025-04-29 21:00:16 -04:00
tests
xliff Translations update from Hosted Weblate (#2467) (#2471) 2025-03-07 12:40:43 -08:00
.dockerignore devex: Add Storybook for component development (#2556) 2025-04-21 13:06:31 -07:00
.editorconfig
.eslintrc.js devex: Add Storybook for component development (#2556) 2025-04-21 13:06:31 -07:00
.gitignore devex: Add Storybook for component development (#2556) 2025-04-21 13:06:31 -07:00
.prettierignore
.vscode
.yarnrc
00-browsertrix-nginx-init.sh
custom-elements-manifest.config.mjs devex: Add Storybook for component development (#2556) 2025-04-21 13:06:31 -07:00
Dockerfile quickfix: add missing dependency for docs (#2388) 2025-02-12 16:39:06 -05:00
frontend.conf.template misc fixes: cors + disable buffering for uploads (#2395) 2025-02-13 19:38:20 -08:00
index.d.ts
lit-localize.json
minio.conf
package.json devex: Document workflow table components (#2558) 2025-04-23 19:31:34 -07:00
playwright.config.ts
postcss.config.js
prettier.config.js devex: Add Storybook for component development (#2556) 2025-04-21 13:06:31 -07:00
README.md
sample.env.local
tailwind.config.js
tsconfig.eslint.json
tsconfig.json devex: Add Storybook for component development (#2556) 2025-04-21 13:06:31 -07:00
vendor.webpack.config.js
web-test-runner.config.mjs deps: Upgrade main frontend dependencies (#2551) 2025-04-15 13:31:50 -07:00
webpack.config.js devex: Document workflow table components (#2558) 2025-04-23 19:31:34 -07:00
webpack.dev.js devex: Document workflow table components (#2558) 2025-04-23 19:31:34 -07:00
webpack.prod.js
yarn.lock devex: Add Storybook for component development (#2556) 2025-04-21 13:06:31 -07:00