Commit 2f2e687a authored by JC Brand's avatar JC Brand

Use flex column for occupant sidebar

parent 6bdf204b
...@@ -5915,7 +5915,6 @@ body.reset { ...@@ -5915,7 +5915,6 @@ body.reset {
font-size: 14px; font-size: 14px;
left: 0; left: 0;
text-align: left; text-align: left;
overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
border-radius: 4px; } border-radius: 4px; }
#conversejs #controlbox .controlbox-pane .add-converse-contact { #conversejs #controlbox .controlbox-pane .add-converse-contact {
...@@ -6169,6 +6168,7 @@ body.reset { ...@@ -6169,6 +6168,7 @@ body.reset {
width: 100%; } } width: 100%; } }
#converse-embedded-chat .chatroom .box-flyout, #converse-embedded-chat .chatroom .box-flyout,
#conversejs .chatroom .box-flyout { #conversejs .chatroom .box-flyout {
overflow-y: hidden;
width: 100%; } width: 100%; }
@media screen and (max-height: 450px) { @media screen and (max-height: 450px) {
#converse-embedded-chat .chatroom .box-flyout, #converse-embedded-chat .chatroom .box-flyout,
...@@ -6235,6 +6235,9 @@ body.reset { ...@@ -6235,6 +6235,9 @@ body.reset {
min-width: 100%; } min-width: 100%; }
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants, #converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants,
#conversejs .chatroom .box-flyout .chatroom-body .occupants { #conversejs .chatroom .box-flyout .chatroom-body .occupants {
display: flex;
flex-direction: column;
justify-content: space-between;
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden; overflow-y: hidden;
vertical-align: top; vertical-align: top;
...@@ -6246,9 +6249,12 @@ body.reset { ...@@ -6246,9 +6249,12 @@ body.reset {
#conversejs .chatroom .box-flyout .chatroom-body .occupants .occupants-heading { #conversejs .chatroom .box-flyout .chatroom-body .occupants .occupants-heading {
padding: 0.3em 0; padding: 0.3em 0;
font-weight: bold; } font-weight: bold; }
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants ul li.feature,
#conversejs .chatroom .box-flyout .chatroom-body .occupants ul li.feature {
font-size: 12px;
width: 100%; }
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants .chatroom-features, #converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants .chatroom-features,
#conversejs .chatroom .box-flyout .chatroom-body .occupants .chatroom-features { #conversejs .chatroom .box-flyout .chatroom-body .occupants .chatroom-features {
bottom: 0.5em;
width: 100%; } width: 100%; }
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants .chatroom-features .feature, #converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants .chatroom-features .feature,
#conversejs .chatroom .box-flyout .chatroom-body .occupants .chatroom-features .feature { #conversejs .chatroom .box-flyout .chatroom-body .occupants .chatroom-features .feature {
...@@ -6273,8 +6279,8 @@ body.reset { ...@@ -6273,8 +6279,8 @@ body.reset {
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list, #converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list,
#conversejs .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list { #conversejs .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list {
overflow-y: auto; overflow-y: auto;
height: -webkit-calc(100% - 220px); flex-basis: 0;
height: calc(100% - 220px); } flex-grow: 1; }
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants ul.features-list, #converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants ul.features-list,
#conversejs .chatroom .box-flyout .chatroom-body .occupants ul.features-list { #conversejs .chatroom .box-flyout .chatroom-body .occupants ul.features-list {
padding-top: 0; } padding-top: 0; }
......
...@@ -5981,7 +5981,6 @@ body { ...@@ -5981,7 +5981,6 @@ body {
font-size: 16px; font-size: 16px;
left: 0; left: 0;
text-align: left; text-align: left;
overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
border-radius: 4px; } border-radius: 4px; }
#conversejs #controlbox .controlbox-pane .add-converse-contact { #conversejs #controlbox .controlbox-pane .add-converse-contact {
...@@ -6033,8 +6032,6 @@ body { ...@@ -6033,8 +6032,6 @@ body {
display: block; } } display: block; } }
#conversejs.fullscreen #controlbox { #conversejs.fullscreen #controlbox {
margin: 0; } margin: 0; }
#conversejs.fullscreen #controlbox .controlbox-panes {
overflow-y: hidden; }
#conversejs.fullscreen #controlbox .controlbox-pane { #conversejs.fullscreen #controlbox .controlbox-pane {
border-radius: 0; } border-radius: 0; }
#conversejs.fullscreen #controlbox .flyout { #conversejs.fullscreen #controlbox .flyout {
...@@ -6288,6 +6285,7 @@ body { ...@@ -6288,6 +6285,7 @@ body {
width: 100%; } } width: 100%; } }
#converse-embedded-chat .chatroom .box-flyout, #converse-embedded-chat .chatroom .box-flyout,
#conversejs .chatroom .box-flyout { #conversejs .chatroom .box-flyout {
overflow-y: hidden;
width: 100%; } width: 100%; }
@media screen and (max-height: 450px) { @media screen and (max-height: 450px) {
#converse-embedded-chat .chatroom .box-flyout, #converse-embedded-chat .chatroom .box-flyout,
...@@ -6354,6 +6352,9 @@ body { ...@@ -6354,6 +6352,9 @@ body {
min-width: 100%; } min-width: 100%; }
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants, #converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants,
#conversejs .chatroom .box-flyout .chatroom-body .occupants { #conversejs .chatroom .box-flyout .chatroom-body .occupants {
display: flex;
flex-direction: column;
justify-content: space-between;
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden; overflow-y: hidden;
vertical-align: top; vertical-align: top;
...@@ -6365,9 +6366,12 @@ body { ...@@ -6365,9 +6366,12 @@ body {
#conversejs .chatroom .box-flyout .chatroom-body .occupants .occupants-heading { #conversejs .chatroom .box-flyout .chatroom-body .occupants .occupants-heading {
padding: 0.3em 0; padding: 0.3em 0;
font-weight: bold; } font-weight: bold; }
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants ul li.feature,
#conversejs .chatroom .box-flyout .chatroom-body .occupants ul li.feature {
font-size: 14px;
width: 100%; }
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants .chatroom-features, #converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants .chatroom-features,
#conversejs .chatroom .box-flyout .chatroom-body .occupants .chatroom-features { #conversejs .chatroom .box-flyout .chatroom-body .occupants .chatroom-features {
bottom: 0.5em;
width: 100%; } width: 100%; }
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants .chatroom-features .feature, #converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants .chatroom-features .feature,
#conversejs .chatroom .box-flyout .chatroom-body .occupants .chatroom-features .feature { #conversejs .chatroom .box-flyout .chatroom-body .occupants .chatroom-features .feature {
...@@ -6392,8 +6396,8 @@ body { ...@@ -6392,8 +6396,8 @@ body {
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list, #converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list,
#conversejs .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list { #conversejs .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list {
overflow-y: auto; overflow-y: auto;
height: -webkit-calc(100% - 220px); flex-basis: 0;
height: calc(100% - 220px); } flex-grow: 1; }
#converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants ul.features-list, #converse-embedded-chat .chatroom .box-flyout .chatroom-body .occupants ul.features-list,
#conversejs .chatroom .box-flyout .chatroom-body .occupants ul.features-list { #conversejs .chatroom .box-flyout .chatroom-body .occupants ul.features-list {
padding-top: 0; } padding-top: 0; }
...@@ -6518,15 +6522,7 @@ body { ...@@ -6518,15 +6522,7 @@ body {
padding: 1em; } padding: 1em; }
#conversejs.fullscreen .chatroom .box-flyout .chatroom-body .occupants .occupants-heading { #conversejs.fullscreen .chatroom .box-flyout .chatroom-body .occupants .occupants-heading {
font-size: 18px; } font-size: 18px; }
#conversejs.fullscreen .chatroom .box-flyout .chatroom-body .occupants .chatroom-features { #conversejs.fullscreen .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list li {
bottom: 1em; }
#conversejs.fullscreen .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list {
height: -webkit-calc(100% - 212px);
height: calc(100% - 212px); }
#conversejs.fullscreen .chatroom .box-flyout .chatroom-body .occupants ul.occupant-list li {
font-size: 14px;
width: 100%; }
#conversejs.fullscreen .chatroom .box-flyout .chatroom-body .occupants ul li.feature {
font-size: 14px; } font-size: 14px; }
#conversejs.fullscreen .chatroom .room-invite span .invited-contact { #conversejs.fullscreen .chatroom .room-invite span .invited-contact {
margin: 0 0 0.5em -1px; } margin: 0 0 0.5em -1px; }
......
This diff is collapsed.
...@@ -68,6 +68,8 @@ ...@@ -68,6 +68,8 @@
} }
.box-flyout { .box-flyout {
overflow-y: hidden;
width: 100%; width: 100%;
@media screen and (max-height: $mobile-landscape-height) { @media screen and (max-height: $mobile-landscape-height) {
height: $mobile-chat-height; height: $mobile-chat-height;
...@@ -135,6 +137,9 @@ ...@@ -135,6 +137,9 @@
} }
} }
.occupants { .occupants {
display: flex;
flex-direction: column;
justify-content: space-between;
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden; overflow-y: hidden;
vertical-align: top; vertical-align: top;
...@@ -142,14 +147,23 @@ ...@@ -142,14 +147,23 @@
border-left: 1px solid $text-color; border-left: 1px solid $text-color;
border-bottom-right-radius: $chatbox-border-radius; border-bottom-right-radius: $chatbox-border-radius;
padding: 0.5em; padding: 0.5em;
.occupants-heading { .occupants-heading {
padding: 0.3em 0; padding: 0.3em 0;
font-weight: bold; font-weight: bold;
} }
ul {
li {
&.feature {
font-size: $font-size-small;
width: 100%;
}
}
}
.chatroom-features { .chatroom-features {
bottom: 0.5em;
width: 100%; width: 100%;
.feature { .feature {
float: left; float: left;
margin-right: 0.5em; margin-right: 0.5em;
...@@ -175,7 +189,8 @@ ...@@ -175,7 +189,8 @@
&.occupant-list { &.occupant-list {
overflow-y: auto; overflow-y: auto;
@include calc(height, '100% - 220px'); flex-basis: 0;
flex-grow: 1;
} }
&.features-list { &.features-list {
padding-top: 0; padding-top: 0;
......
...@@ -371,7 +371,6 @@ ...@@ -371,7 +371,6 @@
font-size: $font-size; font-size: $font-size;
left: 0; left: 0;
text-align: left; text-align: left;
overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
border-radius: $chatbox-border-radius; border-radius: $chatbox-border-radius;
......
...@@ -45,20 +45,10 @@ ...@@ -45,20 +45,10 @@
.occupants-heading { .occupants-heading {
font-size: $font-size-large; font-size: $font-size-large;
} }
.chatroom-features {
bottom: $padding;
}
ul { ul {
&.occupant-list { &.occupant-list {
@include calc(height, '100% - 212px');
li { li {
font-size: $font-size-small; font-size: $font-size-small;
width: 100%;
}
}
li {
&.feature {
font-size: $font-size-small;
} }
} }
} }
......
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
#controlbox { #controlbox {
margin: 0; margin: 0;
.controlbox-panes {
overflow-y: hidden;
}
.controlbox-pane { .controlbox-pane {
border-radius: 0; border-radius: 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment