Skip to content

Commit

Permalink
Mobile optimization from #170
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorley15 committed Aug 6, 2024
1 parent 3b002c0 commit 304097f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 3 additions & 4 deletions backend/server/worldtravel/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ def get_flag_url(self, obj):
class Meta:
model = Country
fields = '__all__' # Serialize all fields of the Adventure model
read_only_fields = '__all__'
read_only_fields = ['id', 'name', 'country_code', 'continent', 'flag_url']

class RegionSerializer(serializers.ModelSerializer):
flag_url = ''
class Meta:
model = Region
fields = '__all__' # Serialize all fields of the Adventure model
read_only_fields = '__all__'
read_only_fields = ['id', 'name', 'country']

class VisitedRegionSerializer(serializers.ModelSerializer):
class Meta:
model = VisitedRegion
fields = '__all__' # Serialize all fields of the Adventure model
read_only_fields = ['user_id']
read_only_fields = ['user_id', 'id']
9 changes: 6 additions & 3 deletions frontend/src/lib/components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<ul
tabindex="0"
class="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52 gap-2"
class="menu dropdown-content mt-3 z-[1] p-2 shadow bg-neutral text-neutral-content rounded-box gap-2 w-96"
>
{#if data.user}
<li>
Expand Down Expand Up @@ -109,7 +109,7 @@
/>
</svg>
</label>
<button on:click={searchGo} type="submit" class="btn btn-neutral">Search</button>
<button on:click={searchGo} type="submit" class="btn btn-primary">Search</button>
</form>
</ul>
</div>
Expand Down Expand Up @@ -174,7 +174,10 @@
<DotsHorizontal class="w-6 h-6" />
</div>
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<ul tabindex="0" class="dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box w-52">
<ul
tabindex="0"
class="dropdown-content bg-neutral text-neutral-content z-[1] menu p-2 shadow rounded-box w-52"
>
<button class="btn" on:click={() => (isAboutModalOpen = true)}>About AdventureLog</button>
<p class="font-bold m-4 text-lg">Theme Selection</p>
<form method="POST" use:enhance={submitUpdateTheme}>
Expand Down

0 comments on commit 304097f

Please sign in to comment.