垫分页器更改工具提示位置 [英] Mat paginator change tooltip position

查看:26
本文介绍了垫分页器更改工具提示位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将 mat-paginator 的工具提示放置在更靠近分页按钮的位置.目前,tooltip 太远了,见下图:

I am trying to position tooltip of mat-paginator closer to the pagination buttons. Currently, tooltip is too far away, see below:

我尝试更新 .cdk-overlay-pane.mat-tooltip-panel 类,但对我不起作用.任何点都非常感谢!

I tried to update .cdk-overlay-pane and .mat-tooltip-panel classes but didn't work for me. Any points are highly appreciated!

推荐答案

将底部样式应用到 mat-tooltip-panel 类.它可以解决问题..它对我有用

apply bottom style to mat-tooltip-panel class. It can resolve the issue..and it worked for me

::ng-deep body .cdk-overlay-container {
  .mat-tooltip-panel {
    bottom: 100px !important;
  }
}

这篇关于垫分页器更改工具提示位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆