Ver a proveniência

Make display less ridiculous when dealing with really long URLs.

pull/24/head
Ben Kurtovic há 9 anos
ascendente
cometimento
e1ef1e25d8
2 ficheiros alterados com 30 adições e 8 eliminações
  1. +20
    -8
      static/style.css
  2. +10
    -0
      templates/index.mako

+ 20
- 8
static/style.css Ver ficheiro

@@ -111,35 +111,47 @@ table#cv-form-inner {
table#cv-result-sources { table#cv-result-sources {
width: 100%; width: 100%;
border-spacing: 0 4px; border-spacing: 0 4px;
table-layout: fixed;
} }


table#cv-result-sources col:nth-child(1) { width: 80%; }
table#cv-result-sources col:nth-child(2) { width: 10%; }
table#cv-result-sources col:nth-child(3) { width: 10%; }

table#cv-result-sources th { table#cv-result-sources th {
text-align: left; text-align: left;
} }


table#cv-result-sources th:nth-child(2) {
padding-right: 4px;
}

table#cv-result-sources tr:nth-child(even) { table#cv-result-sources tr:nth-child(even) {
background-color: #E0E0E0; background-color: #E0E0E0;
} }


table#cv-result-sources td:first-child {
overflow: hidden;
word-break: break-all;
}

table#cv-result-head-table { table#cv-result-head-table {
width: 100%; width: 100%;
text-align: center; text-align: center;
table-layout: fixed;
} }


table#cv-result-head-table td:nth-child(odd) {
table#cv-result-head-table col:nth-child(odd) {
width: 42.5%; width: 42.5%;
font-size: 1.25em;
font-weight: bold;
} }


table#cv-result-head-table td:nth-child(2) {
table#cv-result-head-table col:nth-child(2) {
width: 15%; width: 15%;
} }


table#cv-result-head-table td:nth-child(odd) {
font-size: 1.25em;
font-weight: bold;
overflow: hidden;
word-break: break-all;
}

table#cv-result-head-table td:nth-child(2) div:nth-child(1) { table#cv-result-head-table td:nth-child(2) div:nth-child(1) {
font-weight: bold; font-weight: bold;
} }


+ 10
- 0
templates/index.mako Ver ficheiro

@@ -162,6 +162,11 @@
</div> </div>
<div id="cv-result" class="${'red' if result.confidence >= T_SUSPECT else 'yellow' if result.confidence >= T_POSSIBLE else 'green'}-box"> <div id="cv-result" class="${'red' if result.confidence >= T_SUSPECT else 'yellow' if result.confidence >= T_POSSIBLE else 'green'}-box">
<table id="cv-result-head-table"> <table id="cv-result-head-table">
<colgroup>
<col>
<col>
<col>
</colgroup>
<tr> <tr>
<td> <td>
<a href="${query.page.url}">${query.page.title | h}</a> <a href="${query.page.url}">${query.page.title | h}</a>
@@ -204,6 +209,11 @@
<div id="sources-title">Checked Sources</div> <div id="sources-title">Checked Sources</div>
% if result.sources: % if result.sources:
<table id="cv-result-sources"> <table id="cv-result-sources">
<colgroup>
<col>
<col>
<col>
</colgroup>
<tr> <tr>
<th>URL</th> <th>URL</th>
<th>Confidence</th> <th>Confidence</th>


Carregando…
Cancelar
Guardar