RC-97 | Add Context Menu for embedded weapons
This commit is contained in:
parent
fe90172656
commit
bd92e6928a
7 changed files with 77 additions and 6 deletions
|
|
@ -181,8 +181,23 @@
|
|||
<td></td>
|
||||
</tr>
|
||||
{{else}}
|
||||
<tr data-row="{{slot.index}}" class="{{slot.class}}">
|
||||
<td>{{ slot.data.name }}</td>
|
||||
<tr
|
||||
data-row="{{ slot.index }}"
|
||||
class="{{slot.class}}"
|
||||
data-item-id="{{ slot.data.uuid }}"
|
||||
>
|
||||
<td>
|
||||
<rc-icon
|
||||
class="weapon-ctx-menu"
|
||||
var:size="1rem"
|
||||
var:fill="var(--accent-3)"
|
||||
name="icons/edit"
|
||||
data-action="editItem"
|
||||
></rc-icon>
|
||||
<span class="ellipses">
|
||||
{{ slot.data.name }}
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
{{#if slot.data.system.traitString}}
|
||||
<span class="traits">{{ slot.data.system.traitString }}</span>
|
||||
|
|
|
|||
|
|
@ -91,13 +91,18 @@
|
|||
display: grid;
|
||||
grid-template-columns: subgrid;
|
||||
grid-template-rows: subgrid;
|
||||
overflow-y: auto;
|
||||
|
||||
thead,
|
||||
tbody,
|
||||
tr {
|
||||
display: contents;
|
||||
}
|
||||
td {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
.row-alt > * {
|
||||
background: inherit;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,13 @@
|
|||
font-size: var(--font-size-10)
|
||||
}
|
||||
|
||||
&.ellipses {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Makes it so that spans are never less than the font size */
|
||||
&:empty::before {
|
||||
content: "\200b";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue