소스 검색

Merge branch 'master' of github.com:teodesian/tCMS

George S. Baugh 5 년 전
부모
커밋
eef16d6a6f
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 0
      lib/Trog/DataModule.pm
  2. 3 2
      www/styles/structure.css

+ 2 - 0
lib/Trog/DataModule.pm

@@ -121,6 +121,8 @@ sub filter ($self, $query, @filtered) {
     @filtered = _dedup_versions(undef, @filtered);
 
     #Filter out posts which are too old
+    #Coerce older into numeric
+    $request{older} =~ s/[^0-9]//g if $request{older};
     @filtered = grep { $_->{created} < $request{older} } @filtered if $request{older};
 
     #XXX Heal bad data -- probably not needed

+ 3 - 2
www/styles/structure.css

@@ -1,6 +1,7 @@
 /*First, we start off with specifying what parts of the DOM we want hidden*/
 #leftbar, #rightbar, #footbar {
-    display: block;
+    display: table-cell;
+    vertical-align:top;
 }
 
 /*Now, on to positioning of the elements*/
@@ -62,13 +63,13 @@ body {
 #leftbar {
  width: 6em;
  padding-right: .5em;
+ padding-top: 1rem;
 }
 #kontent {
  padding: 3em .5em .5em .5em;
  min-height: 50%;
  max-width: 100%;
  margin-top: 0px;
- width:100%;
 }
 #rightbar {
  width: 6em;