Skip to content

Commit 6846b61

Browse files
committed
fix: Cloudflare D1 icon rendering too large due to missing resizable modifier
1 parent d6173c0 commit 6846b61

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
Lines changed: 4 additions & 2 deletions
Loading

TablePro/Models/Connection/DatabaseConnection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ extension DatabaseType {
290290
if NSImage(systemSymbolName: name, accessibilityDescription: nil) != nil {
291291
return Image(systemName: name)
292292
}
293-
return Image(name)
293+
return Image(name).resizable()
294294
}
295295

296296
var defaultPort: Int {

TablePro/Views/Settings/Plugins/PluginIconView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ struct PluginIconView: View {
1414
} else {
1515
Image(name)
1616
.renderingMode(.template)
17+
.resizable()
18+
.scaledToFit()
1719
}
1820
}
1921
}

0 commit comments

Comments
 (0)