fix: keyboard overlapping with controls
This commit is contained in:
@@ -313,5 +313,6 @@
|
||||
width: calc(100%);
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
padding-bottom: calc(40px + env(safe-area-inset-bottom));
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -37,6 +37,19 @@ export async function downloadPMTiles(url: string, name: string): Promise<void>
|
||||
console.log(`Download completed: ${path}`);
|
||||
}
|
||||
|
||||
export async function hasPMTiles(name: string): Promise<boolean> {
|
||||
const filename = name + ".pmtiles";
|
||||
const baseDir = BaseDirectory.AppData;
|
||||
const appDataDirPath = await appDataDir();
|
||||
|
||||
if(!await exists(appDataDirPath)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const filePath = await join(appDataDirPath, filename);
|
||||
return await exists(filePath, { baseDir });
|
||||
}
|
||||
|
||||
export async function getPMTiles(name: string) {
|
||||
const filename = name + ".pmtiles";
|
||||
const baseDir = BaseDirectory.AppData;
|
||||
|
||||
Reference in New Issue
Block a user