File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -176,10 +176,10 @@ export class CreateMarkerModal extends Modal {
176
176
const max_size = 24 ;
177
177
let width = image . width ,
178
178
height = image . height ;
179
- if ( width > height && width > max_size ) {
179
+ if ( width >= height && width > max_size ) {
180
180
height *= max_size / width ;
181
181
width = max_size ;
182
- } else if ( height > width && height > max_size ) {
182
+ } else if ( height >= width && height > max_size ) {
183
183
width *= max_size / height ;
184
184
height = max_size ;
185
185
}
Original file line number Diff line number Diff line change @@ -175,10 +175,10 @@ export class ObsidianLeafletSettingTab extends PluginSettingTab {
175
175
max_size = 24 ;
176
176
let width = image . width ,
177
177
height = image . height ;
178
- if ( width > height && width > max_size ) {
178
+ if ( width >= height && width > max_size ) {
179
179
height *= max_size / width ;
180
180
width = max_size ;
181
- } else if ( height > width && height > max_size ) {
181
+ } else if ( height >= width && height > max_size ) {
182
182
width *= max_size / height ;
183
183
height = max_size ;
184
184
}
You can’t perform that action at this time.
0 commit comments