@@ -79,34 +79,48 @@ defmodule YearbookWeb.Approvals do
7979
8080 < div class = "space-y-1 " >
8181 <%= for entry <- @ entries do %>
82- < div class = "flex items-center border-2 border-gray-500 rounded-md p-4 mb-2 " >
83- < div class = "flex items-center gap-12 flex-1 min-w-0 " >
84- < span class = "text-gray-900 w-64 shrink-0 font-medium " > { entry . name } </ span >
85- < span class = "text-gray-900 truncate pr-4 max-w-4xl " > { entry . text } </ span >
82+ < div class = "flex items-center border-2 border-gray-500 rounded-md p-3 mb-2 bg-white " >
83+ < div class = "flex items-center gap-4 md:gap-12 flex-1 min-w-0 " >
84+ < div class = "flex flex-col min-w-0 md:w-64 shrink " >
85+ < label class = "text-[10px] font-bold uppercase text-gray-500 tracking-wider " >
86+ Autor
87+ </ label >
88+ < span class = "text-gray-900 font-medium truncate text-sm md:text-base " >
89+ { entry . name }
90+ </ span >
91+ </ div >
92+
93+ < div class = "hidden md:flex flex-col flex-1 min-w-0 pr-4 " >
94+ < label class = "text-[10px] font-bold uppercase text-gray-500 tracking-wider " >
95+ Frase
96+ </ label >
97+ < span class = "text-gray-900 truncate max-w-4xl " > { entry . text } </ span >
98+ </ div >
8699 </ div >
87100
88- < div class = "ml-auto flex flex-row items-center gap-8 " >
101+ < div class = "ml-2 flex flex-row items-center gap-2 md:gap-8 shrink-0 " >
89102 < button
90103 phx-click = "show_details "
91104 phx-value-id = { entry . id }
92- class = "border-2 border-gray-500 px-2 py-1 rounded text-sm bg-gray-100 cursor-pointer "
105+ class = "border-2 border-gray-500 px-2 py-1 rounded text-[12px] md:text- sm bg-gray-100 cursor-pointer whitespace-nowrap "
93106 >
94107 Ver Detalhes
95108 </ button >
96- < div class = "flex items-center gap-2 " >
109+
110+ < div class = "flex items-center gap-1 md:gap-2 " >
97111 < button
98112 phx-click = "approve "
99113 phx-value-id = { entry . id }
100114 class = "text-green-400 hover:text-green-600 cursor-pointer "
101115 >
102- < . icon name = "hero-check " class = "size-8 " />
116+ < . icon name = "hero-check " class = "size-6 md:size- 8 " />
103117 </ button >
104118 < button
105119 phx-click = "deny "
106120 phx-value-id = { entry . id }
107121 class = "text-red-400 hover:text-red-600 cursor-pointer "
108122 >
109- < . icon name = "hero-x-mark " class = "size-8 " />
123+ < . icon name = "hero-x-mark " class = "size-6 md:size- 8 " />
110124 </ button >
111125 </ div >
112126 </ div >
0 commit comments