Skip to content

Commit

Permalink
Demo-App: fix time input and header spacing on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNewCivilian committed Jan 8, 2025
1 parent 0409fd0 commit a53afd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions demo-app/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<template>
<div class="h-full">
<header
class="absolute bg-osdm-bg-primary w-full top-0 shadow-lg flex justify-between p-4 items-center md:relative md:shadow-none md:bg-osdm-bg-primary md:justify-center md:p-2 md:pt-9 text-xl font-medium ">
<div class="w-16 md:w-0" />
class="absolute bg-osdm-bg-primary w-full top-0 shadow-lg flex justify-center p-4 items-center md:relative md:shadow-none md:bg-osdm-bg-primary md:p-2 md:pt-9 text-xl font-medium ">
<h1 class="self-center text-base sm:text-xl md:text-4xl m-3 font-bold text-osdm-text-inverted text-nowrap">
OSDM
Demo App</h1>
<div class="md:absolute right-4 top-4 ">
<div class="absolute right-4 top-4 ">
<SandboxSettings />
</div>
</header>
Expand Down
2 changes: 1 addition & 1 deletion demo-app/src/components/atoms/InputTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<sbb-form-field width="collapse">
<label>{{ name }}</label>
<sbb-time-input @input="handleInput" ref="input"></sbb-time-input>
<input class="min-w-20" />
<input type="time" class="min-w-20" />
</sbb-form-field>
</template>

Expand Down
2 changes: 1 addition & 1 deletion demo-app/src/components/molecules/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:selected-place="destination" />
<ViasInput aria-placeholder="vias" :select-callback="setVias" :selectedVias="vias" />
</div>
<div class="flex flex-col gap-2">
<div class="flex flex-col gap-2 w-full xl:w-auto">
<InputDate aria-placeholder="date" name="Date" :value="date" :select-callback="setDate" />
<PassengerInput class="hidden xl:block" aria-placeholder="passengers" :select-callback="setPassengers"
:selected-passengers="passengers" />
Expand Down

0 comments on commit a53afd0

Please sign in to comment.