💄 Fix CSS overflow issues
This commit is contained in:
parent
cdccce89aa
commit
1c9937197f
1 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
{{ define "voting" }}
|
{{ define "voting" }}
|
||||||
{{ template "head" . }}
|
{{ template "head" . }}
|
||||||
<div class="flex flex-col justify-center align-center items-center h-screen bg-slate-900 p-2">
|
<div class="flex flex-col justify-center align-center items-center h-screen bg-slate-900 p-2">
|
||||||
<div class="w-full md:w-3/4 lg:w-1/2 xl:w-1/3 border rounded-lg p-2 sm:p-6 md:p-8 bg-slate-800 border-purple-900 text-white">
|
<div class="w-full md:w-3/4 lg:w-1/2 xl:w-1/3 border rounded-lg p-2 sm:p-6 md:p-8 bg-slate-800 border-purple-900 text-white overflow-auto max-h-420">
|
||||||
<div class="relative sm:rounded-lg">
|
<div class="relative sm:rounded-lg">
|
||||||
<h1 class="text-center text-4xl text-white pb-2">
|
<h1 class="text-center text-4xl text-white pb-2">
|
||||||
{{ .Voting.Referendum }}
|
{{ .Voting.Referendum }}
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "voting_result" }}
|
{{ define "voting_result" }}
|
||||||
<table class="w-full text-sm text-left rtl:text-right text-gray-400 text-center mt-4">
|
<table class="w-full text-sm text-left rtl:text-right text-gray-400 text-center mt-4 shadow-xl overflow-x-auto">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="border-b border-t bg-gray-800 border-gray-700">
|
<tr class="border-b border-t bg-gray-800 border-gray-700">
|
||||||
<td class="px-6 py-4 text-4xl bold text-green-700">
|
<td class="px-6 py-4 text-4xl bold text-green-700">
|
||||||
|
@ -105,11 +105,11 @@
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{{ if and .Voting.Result.Quorum .Voting.Result.Threshold }}
|
{{ if and .Voting.Result.Quorum .Voting.Result.Threshold }}
|
||||||
<p class="text-4xl bold text-center p-4 text-green-700 tracking-widest">
|
<p class="text-4xl bold text-center p-4 text-green-700 tracking-widest drop-shadow-xl">
|
||||||
ACCEPTED
|
ACCEPTED
|
||||||
</p>
|
</p>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p class="text-4xl bold text-center p-4 text-red-800 tracking-widest">
|
<p class="text-4xl bold text-center p-4 text-red-800 tracking-widest drop-shadow-xl">
|
||||||
REJECTED
|
REJECTED
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -130,13 +130,13 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{{ range $vote := .Voting.Votes }}
|
{{ range $vote := .Voting.Votes }}
|
||||||
<tr class="border-b border-t bg-gray-800 border-gray-700" id="$vote.Id">
|
<tr class="border-b border-t bg-gray-800 border-gray-700" id="$vote.Id">
|
||||||
<td class="px-2 py-2">
|
<td class="px-2 py-1">
|
||||||
{{ $vote.Choice }}
|
{{ $vote.Choice }}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-2 py-2 semibold">
|
<td class="px-2 py-1 semibold">
|
||||||
{{ $vote.Elector }}
|
{{ $vote.Elector }}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-2 py-2">
|
<td class="px-2 py-1">
|
||||||
{{ $vote.Id }}
|
{{ $vote.Id }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue