Skip to content

Commit 6656d5b

Browse files
committed
fixed weird icon and initial max items
1 parent 9de8774 commit 6656d5b

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

src/renderer/components/Settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function Settings({
8282
</div>
8383
{false && (
8484
<div className="wp-settings-item">
85-
<h3>Default Download Path</h3>
85+
<h3>Download Path</h3>
8686
<div className="wp-settings-item-content" />
8787
</div>
8888
)}

src/renderer/components/WallpaperViewModal.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export default function WallpaperViewModal({ data }: { data: IWallpaperData }) {
158158
return (
159159
<div role="none" className="wp-view" onClick={onAttemptClickOut}>
160160
<BsChevronCompactLeft
161+
data-interact="true"
161162
className={
162163
currentIndex !== undefined && currentIndex > 0
163164
? 'next-item-left'
@@ -168,13 +169,14 @@ export default function WallpaperViewModal({ data }: { data: IWallpaperData }) {
168169
<div className="wp-view-container">
169170
<div className="wp-view-panel-top">
170171
<VscInfo
172+
data-interact="true"
171173
onClick={() => {
172174
setShouldShowInformation(true);
173175
}}
174176
/>
175177
<span>
176178
<h2>{`${currentWallpaper.width}x${currentWallpaper.height}`}</h2>
177-
<IoResizeOutline />
179+
<IoResizeOutline data-interact="false" />
178180
</span>
179181
</div>
180182
<img
@@ -185,13 +187,15 @@ export default function WallpaperViewModal({ data }: { data: IWallpaperData }) {
185187
/>
186188
<div className="wp-view-panel-bottom">
187189
<CgClose
190+
data-interact="true"
188191
onClick={() => {
189192
document.removeEventListener('keypress', handleKeyPress);
190193
dispatch(setCurrentWallpaper(null));
191194
}}
192195
/>
193-
<BsDownload onClick={downloadWallpaper} />
196+
<BsDownload data-interact="true" onClick={downloadWallpaper} />
194197
<BsArrowsFullscreen
198+
data-interact="true"
195199
onClick={() => {
196200
setIsFullscreen(true);
197201
addNotification('Double Click To Exit');

src/renderer/css/Main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ p {
407407
transition: all 0.2s ease-in-out;
408408
}
409409

410-
.wp-view-panel-bottom svg:hover,
411-
.wp-view-panel-top svg:hover {
410+
.wp-view-panel-bottom svg:hover[data-interact='true'],
411+
.wp-view-panel-top svg:hover[data-interact='true'] {
412412
margin: 0px;
413413
font-size: 50px;
414414
color: var(--icon-color-hover);

src/renderer/redux/wallpapersSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const fetchWallpapers = createAsyncThunk(
7979
}) => {
8080
const fetchResult = await getWallpapers(page, maxItems, query);
8181

82-
return { ...fetchResult, page, query };
82+
return { ...fetchResult, page, query, maxItems };
8383
}
8484
);
8585

0 commit comments

Comments
 (0)