Skip to content

Commit

Permalink
improve layout for big screens
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Sep 18, 2024
1 parent 03b0671 commit eb570a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/public/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.1
2.7.0
1 change: 1 addition & 0 deletions frontend/src/components/BotItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export default function BotItem({ bot, lastSync }: Props) {
</IonBadge>{" "}
{displayLastSeen(lastSync || new Date(), bot.lastSeen)}
<div className="selectable">{bot.description}</div>
<br />
<p>
<strong>{_("admin")}</strong>
{bot.admin.name}
Expand Down
18 changes: 12 additions & 6 deletions frontend/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import {
IonPage,
IonIcon,
IonItem,
IonList,
IonGrid,
IonRow,
IonCol,
IonSpinner,
IonSearchbar,
IonToast,
Expand Down Expand Up @@ -71,11 +73,15 @@ const Home: React.FC = () => {
)}
<IonContent fullscreen>
{state.hash ? (
<IonList>
{results.map((bot) => (
<BotItem bot={bot} lastSync={state.lastSync || new Date()} />
))}
</IonList>
<IonGrid>
<IonRow>
{results.map((bot) => (
<IonCol size="12" size-sm="6" size-lg="4" size-xl="3">
<BotItem bot={bot} lastSync={state.lastSync || new Date()} />
</IonCol>
))}
</IonRow>
</IonGrid>
) : (
<div id="loading">
<IonSpinner name="dots"></IonSpinner>
Expand Down

0 comments on commit eb570a5

Please sign in to comment.