Changeset 7999


Ignore:
Timestamp:
Aug 10, 2021, 9:43:46 AM (9 months ago)
Author:
Nicklas Nordborg
Message:

Fixes #2263: More space in the Projects list on the home page

Also added some padding and margins in other places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/my_base/index.jsp

    r7954 r7999  
    164164  newsQuery.order(Orders.desc(Hql.property("id")));
    165165  newsQuery.setParameter("today", new Date(), Type.DATE);
    166   ItemResultList<News> news = newsQuery.list(dc);
     166  List<News> news = newsQuery.list(dc);
    167167 
    168168  String help = Values.getStringOrNull(sc.getClientDefaultSetting("server.links.help"));
     
    185185    <div class="absolutefull" style="height: 50%;">
    186186      <div class="absolutefull" style="height: 2em; overflow: hidden;">
    187         <h3 style="height: 100%;"><base:icon image="project.png" />Projects (<%=projects.size()%>)</h3>
     187        <h3 style="height: 100%; padding-top: 0.2em;"><base:icon image="project.png" />Projects (<%=projects.size()%>)</h3>
    188188      </div>
    189189      <div id="projectsSection" class="absolutefull welcomesection" style="top: 2em; bottom: 0.5em;">
     
    192192      {
    193193        %>
     194        <div style="margin: 0.25em;">
    194195        You are not member of any projects.
     196        </div>
    195197        <%
    196198      }
     
    199201        int activeProjectId = sc.getActiveProjectId();
    200202        %>
    201         <table style="border-spacing: 2px;">
     203        <table style="border-spacing: 0.25em 2px; border-collapse: separate;">
    202204        <%
    203205        if (activeProjectId == 0)
     
    244246    <div class="absolutefull" style="height: 50%; top: auto;">
    245247      <div class="absolutefull" style="height: 2em; top: 0.5em; overflow: hidden;">
    246         <h3 style="height: 100%;"><base:icon image="message.png" />New messages (<%=messages.size()%>)</h3>
     248        <h3 style="height: 100%; padding-top: 0.2em;"><base:icon image="message.png" />New messages (<%=messages.size()%>)</h3>
    247249      </div>
    248250      <div id="messagesSection" class="absolutefull news welcomesection" style="top: 2.5em;">
     
    265267      {
    266268        %>
     269        <div style="margin: 0.25em;">
    267270        No new messages.
     271        </div>
    268272        <%
    269273      }
     
    299303    <div class="absolutefull" style="left: 1em; right: 0.5em; top: auto; height: 14em; bottom: 1em; ">
    300304      <div class="absolutefull" style="height: 2em; overflow: hidden;">
    301       <h3 style="height: 100%;"><base:icon image="help.png" />Help</h3>
    302       </div>
    303       <div id="helpSection" class="absolutefull welcomesection" style="top: 2em;">
     305      <h3 style="height: 100%; padding-top: 0.2em;"><base:icon image="help.png" />Help</h3>
     306      </div>
     307      <div id="helpSection" class="absolutefull welcomesection" style="top: 2em; padding: 0.25em;">
    304308      <%
    305309      if (help != null)
     
    337341    <div class="absolutefull" style="left: 0.5em; right: 1em; bottom: 16em;">
    338342      <div class="absolutefull" style="height: 2em; overflow: hidden;">
    339       <h3 style="height: 100%;"><base:icon image="news.png" />News and announcements (<%=news.size()%>)
     343      <h3 style="height: 100%; padding-top: 0.2em;"><base:icon image="news.png" />News and announcements (<%=news.size()%>)
    340344        <%
    341345        if (RssNewsFeed.isEnabled())
     
    354358        {
    355359          %>
     360          <div style="margin: 0.25em;">
    356361          Nothing new.
     362          </div>
    357363          <%
    358364        }
     
    378384    <div class="absolutefull" style="left: 0.5em; right: 1em; top: auto; height: 14em; bottom: 1em;">
    379385      <div class="absolutefull" style="height: 2em; overflow: hidden;">
    380       <h3 style="height: 100%;"><base:icon image="diskusage.png" />Disk usage</h3>
     386      <h3 style="height: 100%; padding-top: 0.2em;"><base:icon image="diskusage.png" />Disk usage</h3>
    381387      </div>
    382388      <div id="quotaSection" class="absolutefull welcomesection" style="top: 2em;">
Note: See TracChangeset for help on using the changeset viewer.