|
30 | 30 | } |
31 | 31 | } |
32 | 32 | :global { |
| 33 | + .table{ |
| 34 | + overflow: hidden; |
| 35 | + } |
33 | 36 | .art-table { |
34 | 37 | table colgroup col:nth-of-type(1) { |
35 | 38 | min-width: 60px; |
36 | 39 | } |
37 | | - th, |
38 | | - td { |
39 | | - overflow: hidden; |
40 | | - } |
| 40 | + // th, |
| 41 | + // td { |
| 42 | + // overflow: hidden; |
| 43 | + // } |
41 | 44 | .fnWppk { |
42 | 45 | // word-break: break-all; |
43 | 46 | // display: -webkit-box; |
|
202 | 205 |
|
203 | 206 | .tableItem { |
204 | 207 | height: 31px; |
205 | | - cursor: pointer; |
206 | 208 | display: flex; |
207 | 209 | align-items: center; |
208 | 210 | justify-content: space-between; |
209 | 211 | position: relative; |
210 | 212 | padding-left: 4px; |
211 | 213 | user-select: none; |
212 | 214 | background-color: var(--color-bg-base); |
| 215 | + cursor: pointer; |
213 | 216 |
|
214 | 217 | .tableItemContent { |
215 | 218 | max-height: 31px; |
|
218 | 221 | width: 100%; |
219 | 222 | overflow: hidden; |
220 | 223 | white-space: nowrap; |
221 | | - &:hover { |
222 | | - overflow-x: auto; |
223 | | - // line-height: 14px; |
224 | | - } |
| 224 | + text-overflow: ellipsis; |
| 225 | + } |
| 226 | + |
| 227 | + .previewTableItemContent{ |
| 228 | + display: none; |
| 229 | + position: absolute; |
| 230 | + left: 0px; |
| 231 | + top: 0px; |
| 232 | + bottom: 0px; |
| 233 | + width: fit-content; |
| 234 | + min-width: 100%; |
| 235 | + padding: 0px 4px; |
| 236 | + max-height: 31px; |
| 237 | + line-height: 31px; |
| 238 | + background-color: var(--color-bg-layout); |
| 239 | + z-index: 2; |
| 240 | + color: var(--color-text); |
| 241 | + white-space: nowrap; |
225 | 242 | } |
226 | 243 |
|
227 | 244 | &:hover { |
228 | | - .tableHoverBox { |
| 245 | + .previewTableItemContent { |
229 | 246 | display: flex; |
230 | 247 | } |
| 248 | + .previewTableItemContent { |
| 249 | + display: block; |
| 250 | + } |
231 | 251 | } |
232 | 252 |
|
233 | 253 | .cellValueNull { |
|
241 | 261 |
|
242 | 262 | .tableItemEdit { |
243 | 263 | background-color: var(--color-success-bg); |
244 | | - .tableHoverBox { |
| 264 | + .previewTableItemContent { |
245 | 265 | background-color: var(--color-success-bg); |
246 | 266 | } |
| 267 | + |
247 | 268 | } |
248 | 269 | .tableItemHighlight { |
249 | 270 | background-color: var(--color-bg-subtle); |
250 | | - .tableHoverBox { |
| 271 | + .previewTableItemContent { |
251 | 272 | background-color: var(--color-bg-subtle); |
252 | 273 | } |
253 | 274 | } |
254 | 275 | .tableItemFocus { |
255 | 276 | background-color: var(--color-primary-hover); |
256 | 277 | color: var(--color-bg-base); |
257 | | - .tableHoverBox { |
| 278 | + .previewTableItemContent { |
| 279 | + background-color: var(--color-primary-hover); |
| 280 | + } |
| 281 | + .previewTableItemContent{ |
258 | 282 | background-color: var(--color-primary-hover); |
259 | 283 | } |
260 | 284 | .cellValueNull { |
|
263 | 287 | } |
264 | 288 | .tableItemSuccess { |
265 | 289 | background-color: var(--color-success-bg); |
266 | | - .tableHoverBox { |
| 290 | + .previewTableItemContent { |
267 | 291 | background-color: var(--color-success-bg); |
268 | 292 | } |
269 | 293 | } |
270 | 294 | .tableItemError { |
271 | 295 | background-color: var(--color-error-bg); |
272 | | - .tableHoverBox { |
| 296 | + .previewTableItemContent { |
273 | 297 | background-color: var(--color-error-bg); |
274 | 298 | } |
275 | 299 | } |
|
279 | 303 | text-align: center; |
280 | 304 | } |
281 | 305 |
|
282 | | -.tableHoverBox { |
283 | | - position: sticky; |
284 | | - height: 31px; |
285 | | - top: 0px; |
286 | | - bottom: 0px; |
287 | | - right: 0px; |
288 | | - width: 40px; |
289 | | - display: none; |
290 | | - align-items: center; |
291 | | - cursor: pointer; |
292 | | - background-color: var(--color-bg-base); |
293 | | - |
294 | | - i { |
295 | | - font-size: 15px; |
296 | | - margin: 0px 2px; |
297 | | - } |
298 | | -} |
299 | | - |
300 | 306 | .pagination { |
301 | 307 | :global { |
302 | 308 | .ant-pagination-prev, |
|
0 commit comments