Skip to content

Commit

Permalink
Fix Safari issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed May 10, 2024
1 parent f923929 commit 981dba5
Show file tree
Hide file tree
Showing 99 changed files with 691 additions and 605 deletions.
4 changes: 2 additions & 2 deletions backend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const NoMatch = lazy(() => import('./pages/NoMatch'))
const App = () => (
<GlobalProvider>
<Router>
<main className="app">
<div className="app">
<Suspense fallback={<></>}>
<Routes>
<Route path="/sign-in" element={<SignIn />} />
Expand Down Expand Up @@ -74,7 +74,7 @@ const App = () => (
<Route path="*" element={<NoMatch />} />
</Routes>
</Suspense>
</main>
</div>
</Router>
</GlobalProvider>
)
Expand Down
35 changes: 19 additions & 16 deletions backend/src/assets/css/activate.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/* Activate */

div.activate {
display: flex;
flex-direction: column;
align-items: center;
padding-bottom: 40px;
flex-direction: row;
flex: 1 0 auto;
justify-content: center;
margin: 45px 0;
transform: translate3d(0, 0, 0);
}

div.activate h1.activate-form-title {
Expand All @@ -16,6 +17,9 @@ div.resend {
display: flex;
flex-direction: column;
align-items: center;
margin: 45px 0;
transform: translate3d(0, 0, 0);
flex: 1 0 auto;
padding-bottom: 40px;
}

Expand All @@ -25,10 +29,10 @@ div.resend {
}

.resend-form div.resend-form-content {
display: inline-block;
width: 350px;
position: relative;
left: calc(50% - 150px);
display: flex;
flex: 1 0 auto;
flex-direction: column;
align-items: center;
}

.resend-form div.resend-form-content span {
Expand All @@ -39,20 +43,19 @@ div.resend {
float: left;
clear: left;
width: 90px;
margin-left: calc(50% - 65px) !important;
margin-top: 20px !important;
margin-top: 15px !important;
}

.resend-form div.resend-form-content p.go-to-home {
float: left;
clear: left;
width: 200px;
margin-left: calc(50% - 100px);
display: flex;
flex: 1 0 auto;
flex-direction: column;
align-items: center;
}

/* Device width is less than or equal to 960px */

@media only screen and (width <= 960px) {
@media only screen and (width <=960px) {
.activate-form {
margin-top: 40px;
width: 330px;
Expand All @@ -70,7 +73,7 @@ div.resend {

/* Device width is greater than or equal to 960px */

@media only screen and (width >= 960px) {
@media only screen and (width >=960px) {
.activate-form {
margin-top: 40px;
width: 450px;
Expand Down
6 changes: 4 additions & 2 deletions backend/src/assets/css/agencies.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
div.agencies {
display: flex;
flex: 1 0 auto;
transform: translate3d(0, 0, 0);
}

div.agencies .search {
Expand All @@ -14,7 +16,7 @@ div.agencies .info-box {

/* Device width is less than or equal to 960px */

@media only screen and (width <= 960px) {
@media only screen and (width <=960px) {
div.agencies {
flex-direction: column;
}
Expand Down Expand Up @@ -54,7 +56,7 @@ div.agencies .info-box {

/* Device width is greater than or equal to 960px */

@media only screen and (width >= 960px) {
@media only screen and (width >=960px) {
div.agencies {
flex-direction: row;
}
Expand Down
18 changes: 9 additions & 9 deletions backend/src/assets/css/agency-list.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
section.agency-list {
padding-top: 10px;
margin: 0 10px;
display: flex;
flex-direction: column;
align-items: center;
flex: 1 0 auto;
}

section.agency-list .empty-list {
margin-top: 15px;
text-align: center;
width: 250px;
margin-left: calc(50% - 125px);
}

section.agency-list {
padding-top: 10px;
margin: 0 10px;
width: 100%;
max-width: 480px;
}

section.agency-list article {
Expand Down Expand Up @@ -70,7 +71,6 @@ section.agency-list article .agency-actions button {

@media only screen and (width >= 960px) {
section.agency-list article {
margin-left: calc(50% - 300px);
width: 600px;
}

Expand Down
10 changes: 8 additions & 2 deletions backend/src/assets/css/booking-list.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
div.bs-list {
display: flex;
flex-direction: column;
align-items: center;
flex: 1 0 auto;
}

div.bs-list .empty-list {
margin-top: 15px;
text-align: center;
width: 250px;
margin-left: calc(50% - 125px);
}

div.bs-list {
div.bs-list .booking-grid {
width: 100%;
}

Expand Down
8 changes: 5 additions & 3 deletions backend/src/assets/css/booking.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
div.booking {
display: flex;
flex-direction: row;
flex: 1 0 auto;
transform: translate3d(0, 0, 0);
}

div.booking div.col-2 div.col-2-header {
Expand Down Expand Up @@ -31,7 +33,7 @@ div.booking div.col-2 div.col-2-header span.price-day {

/* Device width is less than or equal to 960px */

@media only screen and (width <= 960px) {
@media only screen and (width <=960px) {
div.booking div.col-1 {
padding: 20px;
background: #fefefe;
Expand All @@ -43,15 +45,15 @@ div.booking div.col-2 div.col-2-header span.price-day {
}
}

@media only screen and (width <= 1270px) {
@media only screen and (width <=1270px) {
div.booking div.col-2 .property {
display: none;
}
}

/* Device width is greater than or equal to 960px */

@media only screen and (width >= 960px) {
@media only screen and (width >=960px) {
div.booking div.col-1 {
background: #fefefe;
border-right: #eee solid 1px;
Expand Down
6 changes: 4 additions & 2 deletions backend/src/assets/css/change-password.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
flex-direction: column;
align-items: center;
padding-bottom: 40px;
flex: 1 0 auto;
transform: translate3d(0, 0, 0);
}

.password-reset-form-title {
Expand All @@ -14,7 +16,7 @@

/* Device width is less than or equal to 960px */

@media only screen and (width <= 960px) {
@media only screen and (width <=960px) {
.password-reset-form {
margin-top: 40px;
width: 330px;
Expand All @@ -25,7 +27,7 @@

/* Device width is greater than or equal to 960px */

@media only screen and (width >= 960px) {
@media only screen and (width >=960px) {
.password-reset-form {
margin-top: 40px;
width: 450px;
Expand Down
20 changes: 9 additions & 11 deletions backend/src/assets/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,15 @@
height: 20px !important;
}

@media only screen and (width <= 960px) {
div.content {
margin: 0;
padding: 0;
}
div.content {
display: flex;
flex-direction: column;
flex: 1 0 auto;
margin: 0;
padding: 0;
}

@media only screen and (width <=960px) {
.buttons {
margin-top: 15px;
margin-bottom: 5px;
Expand All @@ -239,12 +242,7 @@
}
}

@media only screen and (width >= 960px) {
div.content {
margin: 0;
padding: 0;
}

@media only screen and (width >=960px) {
.buttons {
margin-top: 15px;
margin-bottom: 5px;
Expand Down
15 changes: 9 additions & 6 deletions backend/src/assets/css/create-agency.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
/* Create Agency */
div.create-agency {
display: flex;
flex-direction: column;
flex: 1 0 auto;
align-items: center;
transform: translate3d(0, 0, 0);
}

.agency-form-wrapper {
margin: 32px 0;
Expand All @@ -12,10 +19,8 @@

/* Device width is less than or equal to 960px */

@media only screen and (width <= 960px) {
@media only screen and (width <=960px) {
.agency-form {
margin-top: 45px !important;
margin-left: calc(50% - 180px) !important;
width: 360px;
height: 900px;
padding: 30px;
Expand All @@ -24,10 +29,8 @@

/* Device width is greater than or equal to 960px */

@media only screen and (width >= 960px) {
@media only screen and (width >=960px) {
.agency-form {
margin-top: 45px !important;
margin-left: calc(50% - 300px) !important;
width: 600px;
height: 900px;
padding: 30px;
Expand Down
18 changes: 11 additions & 7 deletions backend/src/assets/css/create-booking.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
/* Create Location */
/* Create Booking */
div.create-booking {
display: flex;
flex-direction: column;
flex: 1 0 auto;
align-items: center;
transform: translate3d(0, 0, 0);
margin: 45px 0;
}

.booking-form-wrapper {
margin: 32px 0;
Expand All @@ -22,10 +30,8 @@

/* Device width is less than or equal to 960px */

@media only screen and (width <= 960px) {
@media only screen and (width <=960px) {
.booking-form {
margin-top: 45px !important;
margin-left: calc(50% - 180px) !important;
width: 360px;
padding: 30px;
display: inline-block;
Expand All @@ -34,10 +40,8 @@

/* Device width is greater than or equal to 960px */

@media only screen and (width >= 960px) {
@media only screen and (width >=960px) {
.booking-form {
margin-top: 45px !important;
margin-left: calc(50% - 300px) !important;
width: 600px;
padding: 30px;
display: inline-block;
Expand Down
17 changes: 11 additions & 6 deletions backend/src/assets/css/create-location.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
/* Create Location */
div.create-location {
display: flex;
flex-direction: column;
flex: 1 0 auto;
align-items: center;
transform: translate3d(0, 0, 0);
margin: 45px 0;
}


.location-form-wrapper {
margin: 32px 0;
Expand All @@ -12,10 +21,8 @@

/* Device width is less than or equal to 960px */

@media only screen and (width <= 960px) {
@media only screen and (width <=960px) {
.location-form {
margin-top: 45px !important;
margin-left: calc(50% - 180px) !important;
width: 360px;
height: 400px;
padding: 30px;
Expand All @@ -24,10 +31,8 @@

/* Device width is greater than or equal to 960px */

@media only screen and (width >= 960px) {
@media only screen and (width >=960px) {
.location-form {
margin-top: 45px !important;
margin-left: calc(50% - 300px) !important;
width: 600px;
height: 340px;
padding: 30px;
Expand Down
Loading

0 comments on commit 981dba5

Please sign in to comment.