:global { html[lang="sEnglish"] { #global-mouse-tooltip { position: fixed; background: rgba(0, 0, 0, 0.75); color: #fff; padding: 4px 8px; border-radius: 2px; font-size: 14px; // pointer-events: none; z-index: 9999; white-space: nowrap; left: '0'; top: '0'; opacity: '0'; transition: opacity 0.2s; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .ant-tabs-tab { flex-shrink: 0; } .ant-tabs-tab-btn { font-size: 12px; display: -webkit-box; /*! autoprefixer: ignore next */ -webkit-box-orient: vertical; -webkit-line-clamp: 2; /* 只保留 2 行 */ overflow: hidden; text-overflow: ellipsis; /* 兜底 */ white-space: normal; /* 覆盖 antd 默认 nowrap */ width: 120px; /* 按需调整,决定何时断行 */ line-height: 1; } .ant-table-header table { .th-div, th div:not([class]) { display: -webkit-box; /*! autoprefixer: ignore next */ -webkit-box-orient: vertical; -webkit-line-clamp: 1; /* 只保留 2 行 */ overflow: hidden; text-overflow: ellipsis; /* 兜底 */ white-space: normal; word-break: break-all; /* 覆盖 antd 默认 nowrap */ // width: 120px; /* 按需调整,决定何时断行 */ line-height: 1.2; } } .ant-form-item-label { display: flex; align-items: center; padding: 0 6px 0 16px; label { // padding: 3px; height: auto; font-size: 14px !important; display: -webkit-box; /*! autoprefixer: ignore next */ -webkit-box-orient: vertical; -webkit-line-clamp: 2; /* 只保留 2 行 */ overflow: hidden; text-overflow: ellipsis; /* 兜底 */ white-space: normal; /* 覆盖 antd 默认 nowrap */ // width: 120px; /* 按需调整,决定何时断行 */ line-height: 1.2; } } .mesShowType .ant-form-item-label { padding: 0 0 0 10px; label { font-size: 18px !important; } } .ant-table-column-title { overflow: initial; } .react-grid-item .ant-form-item-label>label { &::before { display: none; } &::after { display: none; } display: flex; justify-content: center; .xly-grid-label { height: auto !important; font-size: 10px !important; display: -webkit-box; /*! autoprefixer: ignore next */ -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; white-space: normal !important; line-height: 1.2; &::after { content: ':'; position: relative; top: -0.5px; margin: 0 8px 0 2px; } } } .react-grid-item .ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional) { .xly-grid-label { &::before { display: inline-block; margin-right: 4px; color: #ff4d4f; font-size: 12px; font-family: SimSun, sans-serif; line-height: 1; content: '*'; } } } th[width="40"] { .th-div { width: 32px; margin: 0; height: auto; display: -webkit-box; /*! autoprefixer: ignore next */ -webkit-box-orient: vertical; -webkit-line-clamp: 10; /* 只保留 2 行 */ overflow: hidden; text-overflow: ellipsis; /* 兜底 */ white-space: normal; word-break: break-all; /* 覆盖 antd 默认 nowrap */ /* 按需调整,决定何时断行 */ line-height: 1.2; } } } }