From c2db998b93251dda21590702741a32e4a0fafe71 Mon Sep 17 00:00:00 2001 From: jackyq2015 Date: Wed, 15 Nov 2017 16:17:57 -0500 Subject: [PATCH] let the browser auto fit the table cell when resizing/zooming --- .../scripts/project/edit-metadata-dialog.html | 2 +- .../core/styles/index/open-project-ui.less | 31 ++++++------------- 2 files changed, 10 insertions(+), 23 deletions(-) diff --git a/main/webapp/modules/core/scripts/project/edit-metadata-dialog.html b/main/webapp/modules/core/scripts/project/edit-metadata-dialog.html index ab7eb6110..39658d0b7 100644 --- a/main/webapp/modules/core/scripts/project/edit-metadata-dialog.html +++ b/main/webapp/modules/core/scripts/project/edit-metadata-dialog.html @@ -1,4 +1,4 @@ -
+
diff --git a/main/webapp/modules/core/styles/index/open-project-ui.less b/main/webapp/modules/core/styles/index/open-project-ui.less index e0f5f250e..afddfe83b 100644 --- a/main/webapp/modules/core/styles/index/open-project-ui.less +++ b/main/webapp/modules/core/styles/index/open-project-ui.less @@ -87,38 +87,26 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. opacity: 0.2; } -#projects-container > table { - table-layout: fixed -} - #projects-container > table thead th:nth-child(1) { border: 0; - width: 1.5% } #projects-container > table thead th:nth-child(2) { left-border: 0; - width: 3% } #projects-container > table thead th:nth-child(3) { - width: 8% + white-space: nowrap; } -#projects-container > table thead th:nth-child(4) { - width: 15% +/* Name */ +#projects-container > table td:nth-child(4) { + white-space: nowrap; } -#projects-container > table thead th:nth-child(5) { - width: 6% -} - -#projects-container > table thead th:nth-child(7) { - width: 38% -} - -#projects-container > table thead th:nth-child(8) { - width: 5% +/* Subject */ +#projects-container > table td:nth-child(6) { + white-space: nowrap; } #projects-container > table > tbody > tr > td { @@ -137,7 +125,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #metadata-body tr:nth-child(odd) {background: #FFF} #metadata-body > table { - table-layout: fixed + table-layout: fixed; } #metadata-body > table > tbody > tr > td { @@ -149,6 +137,5 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. } #metadata-body > table > tbody > tr:nth-child(1) > th:nth-child(3) { - width: 3% + width: 4% } -