Skip to content

Commit 9f5ebf9

Browse files
committed
style: update layout for bounty live page
- Adjusted CSS classes for responsive design, changing from 'sm' to 'xl' for better alignment and spacing. - Enhanced the grid layout for improved visual structure on larger screens.
1 parent fa43897 commit 9f5ebf9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/algora_web/live/bounty_live.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ defmodule AlgoraWeb.BountyLive do
298298
@impl true
299299
def render(assigns) do
300300
~H"""
301-
<div class={classes(["sm:flex p-4", if(!@current_user, do: "pb-16 sm:pb-24")])}>
302-
<.scroll_area class="sm:h-[calc(100svh-96px)] flex-1 pr-6">
301+
<div class={classes(["xl:flex p-4", if(!@current_user, do: "pb-16 xl:pb-24")])}>
302+
<.scroll_area class="xl:h-[calc(100svh-96px)] flex-1 pr-6">
303303
<div class="space-y-4">
304304
<.card>
305305
<.card_content>
306-
<div class="flex flex-col sm:flex-row sm:justify-between gap-4">
307-
<div class="flex flex-col gap-4 sm:flex-row sm:items-center">
306+
<div class="flex flex-col xl:flex-row xl:justify-between gap-4">
307+
<div class="flex flex-col gap-4 xl:flex-row xl:items-center">
308308
<.avatar class="h-12 w-12 sm:h-20 sm:w-20 rounded-lg sm:rounded-2xl">
309309
<.avatar_image src={@ticket.repository.user.avatar_url} />
310310
<.avatar_fallback>
@@ -341,7 +341,7 @@ defmodule AlgoraWeb.BountyLive do
341341
</div>
342342
</.card_content>
343343
</.card>
344-
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
344+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
345345
<.card class="flex flex-col items-between justify-center">
346346
<.card_content>
347347
<div class="flex items-center justify-between gap-6">
@@ -460,7 +460,7 @@ defmodule AlgoraWeb.BountyLive do
460460
</div>
461461
</.scroll_area>
462462
463-
<div class="h-[calc(100svh-96px)] sm:w-[400px] flex sm:flex-none flex-col border rounded-xl">
463+
<div class="h-[calc(100svh-96px)] xl:w-[400px] flex xl:flex-none flex-col border rounded-xl">
464464
<div class="flex flex-none items-center justify-between border-b border-border bg-card/50 p-4 backdrop-blur supports-[backdrop-filter]:bg-background/60">
465465
<div class="flex justify-between items-center w-full">
466466
<h2 class="text-lg font-semibold">

0 commit comments

Comments
 (0)