mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-11-28 05:00:26 +08:00
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>
53 lines
1.1 KiB
SCSS
53 lines
1.1 KiB
SCSS
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
.menu {
|
|
position: absolute;
|
|
z-index: 1000;
|
|
display: flex;
|
|
max-width: 400px;
|
|
min-width: 125px;
|
|
padding: 2px;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
align-items: flex-start;
|
|
gap: 1px;
|
|
border-radius: 4px;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
background: #212121;
|
|
box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 4px 6px;
|
|
cursor: pointer;
|
|
color: var(--main-text-color);
|
|
font-size: 12px;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
line-height: normal;
|
|
letter-spacing: -0.12px;
|
|
width: 100%;
|
|
border-radius: 2px;
|
|
|
|
.label {
|
|
display: block;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.menu-item {
|
|
color: var(--main-text-color);
|
|
|
|
&:hover {
|
|
background-color: var(--accent-color);
|
|
color: var(--button-text-color);
|
|
border-radius: 2px;
|
|
}
|
|
}
|