From 7da58a0de947585e726dbecff5c421bfc355903e Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 30 Jun 2016 15:10:32 +0200 Subject: [PATCH] improve pad naming UX, slight refactoring * prevent naming conflicts * migrate localestorage to use named attributes * use ctime and atime * display default names in table * sort pads by most recent atime * move more functions into cryptpad common * change table styles --- customize.dist/index.html | 79 +++++++++++++---------- www/code/main.js | 4 +- www/common/cryptpad-common.js | 114 +++++++++++++++++++++++++++++----- www/pad/main.js | 4 ++ 4 files changed, 151 insertions(+), 50 deletions(-) diff --git a/customize.dist/index.html b/customize.dist/index.html index 0f8f41659..cd284d80f 100644 --- a/customize.dist/index.html +++ b/customize.dist/index.html @@ -49,7 +49,7 @@ tbody { border-top: 2px solid black; } - tbody td, thead th { + tbody td { /* width: 20%; */ /* Optional */ border-right: 1px solid black; /* white-space: nowrap; */ @@ -61,9 +61,19 @@ tbody td:last-child, thead th:last-child { border-right: none; } - tbody tr:nth-child(even) { + tbody tr:nth-child(odd) { background-color: #ddd; } + tbody tr th { + box-sizing: border-box; + border: 1px solid black; + } + tbody tr th:last-child { + border-right: 0px; + } + tbody tr th:first-of-type { + border-left: 0px; + } .remove { cursor: pointer; @@ -129,77 +139,73 @@