Browse Source

Fix the Rooms spinner when there is no chatroom

Smaller placeholders
pull/978/head
Timothée Jaussoin 5 years ago
parent
commit
e4c1f86093
  1. 2
      app/widgets/Rooms/Rooms.php
  2. 6
      public/theme/css/style.css

2
app/widgets/Rooms/Rooms.php

@ -182,6 +182,8 @@ class Rooms extends Base
$this->rpc('Rooms.refresh');
$this->rpc('Rooms.checkNoConnected');
$this->rpc('MovimUtils.removeClass', '#rooms_widget ul.list.rooms', 'spin');
$view = $this->tpl();
$this->rpc('MovimTpl.remove', '#rooms_widget ul.list.empty');
$this->rpc('MovimTpl.appendAfter', '#rooms_widget ul.list.rooms', $view->draw('_rooms_empty'));

6
public/theme/css/style.css

@ -368,14 +368,14 @@ img.avatar:not([src=""]) + .placeholder {
}
.placeholder > i:first-child {
font-size: 18rem;
font-size: 14rem;
opacity: 0.3;
}
.placeholder h1 {
color: #888;
font-size: 3rem;
line-height: 4rem;
font-size: 2.5rem;
line-height: 3rem;
margin-bottom: 1rem;
}

Loading…
Cancel
Save