Skip to content

Commit

Permalink
chore(master): release 0.46.0 (#453)
Browse files Browse the repository at this point in the history
* chore(master): release 0.46.0

* feat: improve screenshot plugin dimensions and styling

---------

Co-authored-by: Ferenc Sárai <[email protected]>
  • Loading branch information
bee-worker and Ferenc Sárai authored Nov 28, 2024
1 parent d0a3906 commit 4360884
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.46.0](https://github.com/ethersphere/swarm-desktop/compare/v0.45.0...v0.46.0) (2024-11-28)


### Features

* add screenshot plugin ([#451](https://github.com/ethersphere/swarm-desktop/issues/451)) ([d0a3906](https://github.com/ethersphere/swarm-desktop/commit/d0a3906df129c94c5dc40c8870d594328381da22))

## [0.45.0](https://github.com/ethersphere/swarm-desktop/compare/v0.44.0...v0.45.0) (2024-11-25)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Swarm Association",
"email": "[email protected]"
},
"version": "0.45.0",
"version": "0.46.0",
"description": "Desktop client for running and managing bee",
"homepage": "https://desktop.ethswarm.org/",
"repository": "https://github.com/ethersphere/swarm-desktop",
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/screenshot/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export function getScreenSize(resizeBy = 3) {
const scaleFactor = primaryDisplay.scaleFactor

const defaultScreenSize = {
width: (width / resizeBy) * scaleFactor,
height: (height / resizeBy) * scaleFactor,
width: Math.floor((width / resizeBy) * scaleFactor),
height: Math.floor((height / resizeBy) * scaleFactor),
}

return {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/screenshot/windows/preview/preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ iframe {
img {
display: block;
max-width: 90%;
max-height: 720px;
max-height: 75vh;
object-fit: contain;
}

Expand Down
1 change: 1 addition & 0 deletions src/plugins/screenshot/windows/preview/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function createPreviewWindow(imgDataURL: string) {
previewWindow = new BrowserWindow({
width: defaultScreenSize.width,
height: defaultScreenSize.height,
useContentSize: true,
resizable: false,
webPreferences: {
preload: path.join(__dirname, 'preview-preload.js'),
Expand Down

0 comments on commit 4360884

Please sign in to comment.