代码之家  ›  专栏  ›  技术社区  ›  physicsboy

由于在说明中添加图标按钮,导致未对齐后垂直对齐垫子扩展面板标题

  •  0
  • physicsboy  · 技术社区  · 7 年前

    我已经在我的垫子扩展面板的标题描述中添加了一个图标按钮,但是它将垂直对齐从我的实际面板标题中抛出。

    有没有简单的方法来解决这个问题?

    https://stackblitz.com/edit/justify-toggle-button-end-ulgdrt

    1 回复  |  直到 7 年前
        1
  •  2
  •   Rahul    7 年前

    您可以添加下面的代码,它将负责垂直对齐

    .mat-expansion-panel-header-title {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
    

    enter image description here