Skip to content

Commit a798137

Browse files
committed
fix: Status component using wrong field key
refactor: Add cursor pointer to more icons, add edit class to playlist pencil
1 parent f078787 commit a798137

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/renderer/components/GameComponents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function GameComponentPlayMode(props: GameComponentProps) {
130130

131131
export function GameComponentStatus(props: GameComponentProps) {
132132
const { viewId, editable, suggestions, updateGame, doSearch } = props;
133-
const status = window.ext.hooks.useAppSelector(selectGameField(viewId, 'playMode'));
133+
const status = window.ext.hooks.useAppSelector(selectGameField(viewId, 'status'));
134134
const lang = useContext(LangContext);
135135

136136
return (
@@ -345,7 +345,7 @@ export function GameComponentPlaylistNotes(props: GameComponentProps) {
345345
<p className='browse-right-sidebar__row-header-text'>{props.header}: </p>
346346
{!upperEditable && (
347347
<>
348-
<div onClick={() => setEditableOverride(!editableOverride)}>
348+
<div className='browse-right-sidebar__title-row__buttons__edit-button' onClick={() => setEditableOverride(!editableOverride)}>
349349
<OpenIcon icon={editable ? 'check' : 'pencil'}/>
350350
</div>
351351
</>

static/window/styles/core.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,6 +1719,12 @@ body {
17191719
font-weight: bold;
17201720
font-size: 1.05em;
17211721
}
1722+
.browse-right-sidebar__title-row__buttons__edit-button {
1723+
cursor: pointer;
1724+
}
1725+
.browse-right-sidebar__title-row__buttons__remove-from-playlist {
1726+
cursor: pointer;
1727+
}
17221728
.browse-right-sidebar--edit-enabled {
17231729
user-select: none; /* Can not select text while editing is enabled */
17241730
}
@@ -3764,6 +3770,7 @@ body {
37643770
}
37653771

37663772
.menu-item {
3773+
cursor: pointer;
37673774
display: flex;
37683775
align-items: center;
37693776
height: calc(1px * var(--height));

0 commit comments

Comments
 (0)