Skip to content

Commit 6bc74e5

Browse files
committed
feat: improve spacing and styling on job pages
1 parent fad1bee commit 6bc74e5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/algora_web/live/jobs_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ defmodule AlgoraWeb.JobsLive do
119119
>
120120
<div
121121
id={"job-description-#{job.id}"}
122-
class="line-clamp-3 transition-all duration-200"
122+
class="line-clamp-3 transition-all duration-200 [&>p]:m-0"
123123
phx-hook="ExpandableText"
124124
data-expand-id={"expand-#{job.id}"}
125125
data-class="line-clamp-3"

lib/algora_web/live/org/job_live.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ defmodule AlgoraWeb.Org.JobLive do
137137
<div class="container mx-auto max-w-7xl space-y-8 p-4 sm:p-6 lg:p-8">
138138
<.section>
139139
<.card class="flex flex-col p-6">
140-
<div class="flex flex-col md:flex-row md:justify-between">
140+
<div class="flex flex-col md:flex-row md:justify-between gap-2">
141141
<div>
142142
<div class="flex items-start md:items-center gap-3">
143143
<.avatar class="h-16 w-16">
@@ -178,7 +178,7 @@ defmodule AlgoraWeb.Org.JobLive do
178178
>
179179
<div
180180
id={"job-description-#{@job.id}"}
181-
class="line-clamp-3 transition-all duration-200"
181+
class="line-clamp-3 transition-all duration-200 [&>p]:m-0"
182182
phx-hook="ExpandableText"
183183
data-expand-id={"expand-#{@job.id}"}
184184
data-class="line-clamp-3"

lib/algora_web/live/org/jobs_live.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ defmodule AlgoraWeb.Org.JobsLive do
9292
</div>
9393
9494
<%= if not Enum.empty?(@media) do %>
95-
<div class="max-w-xl mx-auto mt-8 flex flex-col lg:flex-row justify-center gap-4">
95+
<div class="max-w-xl mx-auto mt-8 flex flex-row justify-center gap-4">
9696
<%= for media <- @media |> Enum.take(3) do %>
97-
<div class="lg:w-1/3 aspect-video w-full rounded-lg overflow-hidden">
97+
<div class="w-1/3 aspect-video w-full rounded-lg overflow-hidden">
9898
<%= if media.url |> String.contains?("youtube") do %>
9999
<.modal_video
100100
src={media.url}
@@ -127,7 +127,7 @@ defmodule AlgoraWeb.Org.JobsLive do
127127
<.card class="mt-4 flex flex-col p-6">
128128
<div class="grid gap-8">
129129
<%= for job <- @jobs do %>
130-
<div class="flex flex-col md:flex-row md:items-center justify-between gap-2">
130+
<div class="flex flex-col md:flex-row md:items-center justify-between gap-4">
131131
<div>
132132
<div>
133133
<%= if @current_user_role in [:admin, :mod] do %>
@@ -169,7 +169,7 @@ defmodule AlgoraWeb.Org.JobsLive do
169169
<div class="pt-2 flex flex-wrap gap-2">
170170
<%= for tech <- job.tech_stack do %>
171171
<.badge variant="outline">
172-
<.avatar class="w-4 h-4 invert saturate-0 mr-1.5 rounded-sm">
172+
<.avatar class="w-4 h-4 invert saturate-0 mr-1 rounded-sm">
173173
<.avatar_image src={"https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/#{String.downcase(tech)}/#{String.downcase(tech)}-original.svg"} />
174174
<.avatar_fallback>
175175
{Algora.Util.initials(tech)}

0 commit comments

Comments
 (0)