Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

181
Visualizações
angular table , cell with

Is there a way we can extend the card which is on the cell up to the end of the table ? that there will be no padding , as you can see on the arrow on the screenshot, I wanted to extend the card up to end .

enter image description here

#html

  <mat-table class="-card" [dataSource]="table.dataSource" [@animateStagger]="{value:'50'}" matMultiSort
        (matSortChange)="table.onSortEvent()" (contentChanged)="isLoadingTableData = false">
        <ng-container matColumnDef="status">
            <mat-header-cell *matHeaderCellDef mat-multi-sort-header="status" >
                <span class="text-left">DATA</span>
            </mat-header-cell>
            <mat-cell *matCellDef="let model">
                <div class="card" style="width:100%;padding: 16px 16px 16px 16px !important;">
                    <div fxLayout="row">
                        DATA TEST
                    </div>
                </div>
            </mat-cell>
        </ng-container>
        <mat-header-row *matHeaderRowDef="table.displayedColumns;" style="padding-bottom: 16px;">
        </mat-header-row>
        <mat-row *matRowDef="let item; columns: table.displayedColumns;" style="cursor: pointer;">
        </mat-row>
    </mat-table>

#css

.card{
    background: #FFFFFF;
    box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px rgba(0, 0, 0, 0.14), 0px 1px 8px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    /* padding: 16px; */
    margin-bottom: 16px;
}
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can add a class to set the padding zero to your mat-cell element something like

<mat-cell *matCellDef="let model"  class="p-0">

then in css

.p-0 {
  padding: 0 !important;
}

Working demo

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda