waveterm/frontend/app/view/preview/csvview.scss
Copilot 6c8df20bd8
Remove ellipsis mixin and delete mixins.scss (#2480)
The `ellipsis()` mixin in `mixins.scss` was only used in two files.
Replaced with plain CSS and removed the file entirely.

## Changes

- **Converted mixin usage to plain CSS** in `flyoutmenu.scss` and
`expandablemenu.scss`:
  ```scss
  // Before
  .label {
      @include mixins.ellipsis();
  }
  
  // After
  .label {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
  ```

- **Removed unused imports** from 8 SCSS files that imported
`mixins.scss` but didn't use it

- **Deleted** `frontend/app/mixins.scss`

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>

> in mixins.scss we have one last one called ellipsis(). i believe it is
only used in a couple places now... at least flyoutmenu.scss and
expandablemenu.scss. lets convert those to just plain CSS instead of
using the mixin. and then i think we can delete the mixins.scss file
completely... maybe 8 or so scss files that include it that will also
need modification.
> 
> do your own check though to find any additional usages of mixins.scss
and the ellipsis mixin. make sure we remove all usages.


</details>



<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
2025-10-26 11:08:47 -07:00

90 lines
2.2 KiB
SCSS

// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
.csv-view {
opacity: 0; /* Start with an opacity of 0, meaning it's invisible */
overflow-x: auto;
overflow-y: hidden;
.cursor-pointer {
cursor: pointer;
}
.select-none {
user-select: none;
}
table.probe {
position: absolute;
visibility: hidden;
}
table {
border-collapse: collapse;
overflow-x: auto;
border: 1px solid var(--scrollbar-thumb-hover-color);
thead {
position: relative;
display: block;
width: 100%;
overflow-y: scroll;
tr {
border-bottom: 1px solid var(--scrollbar-thumb-hover-color);
th {
color: var(--main-text-color);
border-right: 1px solid var(--scrollbar-thumb-hover-color);
border-bottom: none;
padding: 2px 10px;
flex-basis: 100%;
flex-grow: 2;
display: block;
text-align: left;
position: relative;
.inner {
text-align: left;
padding-right: 15px;
position: relative;
.sort-icon {
position: absolute;
right: 0px;
top: 2px;
width: 9px;
}
}
}
}
}
tbody {
display: block;
position: relative;
overflow-y: scroll;
overscroll-behavior: contain;
}
tr {
width: 100%;
display: flex;
td {
border-right: 1px solid var(--scrollbar-thumb-hover-color);
border-left: 1px solid var(--scrollbar-thumb-hover-color);
padding: 3px 10px;
flex-basis: 100%;
flex-grow: 2;
display: block;
text-align: left;
}
}
}
}
.csv-view.show {
opacity: 1;
}