Skip to content

Commit

Permalink
style(Notes): Don't show pointer if there are no notes in quick info
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruptein authored Jan 21, 2024
1 parent 0518897 commit cdfddf1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/src/game/ui/SelectionInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ function annotate(note: DeepReadonly<ClientNote>): void {
<div class="info-notes">
<div
:title="notes.length > 0 ? (expandNotes ? 'Collapse notes' : 'Expand notes') : ''"
:style="{ cursor: notes.length > 0 ? 'pointer' : 'default' }"
@click="expandNotes = !expandNotes"
>
<font-awesome-icon icon="note-sticky" title="Open note manager" @click.stop="openNotes" />
Expand Down Expand Up @@ -293,10 +294,6 @@ function annotate(note: DeepReadonly<ClientNote>): void {
&:first-child {
margin-top: 0;
&:hover {
cursor: pointer;
}
svg {
margin: 0 0.5rem;
}
Expand Down

0 comments on commit cdfddf1

Please sign in to comment.