Skip to content

Commit f5db194

Browse files
committed
bugfix + mobile compatibility
1 parent f5b7262 commit f5db194

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

advasearch/src/functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function getDate(customDate?: Date) {
2626
}
2727

2828
export function getVersion(): string {
29-
return 'v1.0.0'
29+
return 'v2.1.0'
3030
}
3131

3232
// RichText processing Functions

advasearch/src/lib/DynamicBackground.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script lang="ts">
2+
let lastRandom:number;
23
let noImages = 29;
34
let currentURI = getRandomImageURI();
45
let lastURI = currentURI;
56
let appear = true;
67
7-
let lastRandom:number;
88
function getRandomImageURI():string {
99
let random = Math.floor(Math.random() * noImages)
1010
while (lastRandom == random) {

advasearch/src/lib/SearchBar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
}
215215
216216
.wrap {
217-
width: 100%;
217+
max-width: calc(100svw - 1rem);
218218
width: 45rem;
219219
height: calc(4rem + 2px);
220220
font-size: 2rem;

advasearch/src/routes/Search.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@
6464
<style lang="scss">
6565
.logo-large {
6666
margin-bottom: 2rem;
67+
max-width: 98svw;
6768
height: 6.5rem;
6869
width: 26.3519795661rem;
70+
object-fit:contain;
6971
}
7072
.top-text {
7173
font-size: 1rem;

0 commit comments

Comments
 (0)