如何调整自定义复合元素的宽度? (Drupal 9 WebForm)

发布于 2025-01-26 07:30:37 字数 635 浏览 2 评论 0原文

我自定义的WebForm在复合材料中具有9个元素。由于它们太多了,因此复合材料超出了您将在下面看到的现场集。

这是复合的图片

我想缩小复合材料的大小并调整某些元素的宽度(例如,因为它不应该占用那么多空间,也许可以使类型元素更宽)。

我沿着这个解决方案遵循此解决方案,但尺寸甚至不会改变 当我添加时

wrapper_attributes:
  width: 20%

任何人都有调整复合元素宽度的经验吗?

ps要视觉友好,这是我以上添加了上面的代码

A webform I am customizing has 9 elements in a composite. Since there are too many of them, the composite is exceeding the fieldset you will see below.

This is the picture of the composite

I would like to shrink the size of the composite and adjust the widths of some of the elements (like Amount since it shouldn't take that many space, and maybe make Type element wider).

I followed along this solution but the size would not change even when I added

wrapper_attributes:
  width: 20%

Does anyone have experience with adjusting the widths of composite's elements ?

P.S. To be visual-friendly, here is where I added the code above

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

活雷疯 2025-02-02 07:30:37

其他想法:更改CSS填充,边距或边界线。

Other Idea: Change in CSS padding, margin or border-line.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文