Skip to content

Commit

Permalink
fix: wrong header text
Browse files Browse the repository at this point in the history
  • Loading branch information
syam babu committed Jan 31, 2024
1 parent 0ddb483 commit 2c9736b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#calendar-widget{
#calendar-widget {
height: 100%;
/* max-height: 100vh; */
}

#calendar-widget > .widget-layout {
width: 100%;
/* padding: 16px; */
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
Expand Down
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function App(props) {
dynamicCssColorInjector(palette);
return (
<WidgetContextProvider widgetProps={widgetProps}>
<div className="widget-layout" style={{ height: widgetProps.height, maxHeight: '100vh' }}>
<div className="widget-layout" style={{ height: widgetProps.height }}>
<Search />
<ResultPanel />
<Footer />
Expand Down
6 changes: 3 additions & 3 deletions src/components/resultHeader/ResultHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ResultHeader = () => {
{isSearchEmpty && isDateRangePresent && (
<p>
{totalCount > 0
? ` ${t('resultHeader.upcoming')} ${totalCount} ${t('events')} "${dateText}`
? ` ${t('resultHeader.upcoming')} ${totalCount} ${t('events')} - ${dateText}`
: `${t('resultHeader.noEvents')}`}
</p>
)}
Expand All @@ -37,12 +37,12 @@ const ResultHeader = () => {
</p>
)}

{!isSearchEmpty && !isDateRangePresent && (
{!isSearchEmpty && isDateRangePresent && (
<p>
{totalCount > 0
? ` ${totalCount} ${t(
'resultHeader.eventsContaining',
)} "${searchKeyWord}" ${dateText}`
)} "${searchKeyWord}" - ${dateText}`
: `${t('resultHeader.noEvents')}`}
</p>
)}
Expand Down

0 comments on commit 2c9736b

Please sign in to comment.