Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: inconsistent analytics page elements alignment for the small screen size (1024px) gf-530 #535

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
display: flex;
gap: 8px;
align-items: center;
width: 270px;
max-width: 270px;
padding: 10px 16px;
color: inherit;
cursor: pointer;
Expand All @@ -120,6 +120,7 @@
font-weight: 400;
line-height: 1.5;
color: inherit;
text-overflow: ellipsis;
pointer-events: none;
background-color: transparent;
border: none;
Expand Down
16 changes: 9 additions & 7 deletions apps/frontend/src/pages/analytics/analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,15 @@ const Analytics = (): JSX.Element => {
placeholder="Select project"
/>
</div>
<DateInput
control={control}
maxDate={todayDate}
maxRange={ANALYTICS_DATE_MAX_RANGE}
minDate={minChoosableDate}
name="dateRange"
/>
<div className={styles["date-input-wrapper"]}>
<DateInput
control={control}
maxDate={todayDate}
maxRange={ANALYTICS_DATE_MAX_RANGE}
minDate={minChoosableDate}
name="dateRange"
/>
</div>
</form>
<AnalyticsTable
activityLogs={activityLogs}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.search-container {
width: 300px;
width: 100%;
max-width: 300px;
background-color: var(--color-background-secondary);
}
8 changes: 7 additions & 1 deletion apps/frontend/src/pages/analytics/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@
}

.select-wrapper {
min-width: 270px;
width: 100%;
max-width: 270px;
}

.date-input-wrapper {
flex-grow: 1;
max-width: 270px;
}
Loading