Skip to content

Commit ca7cefe

Browse files
mobile css content place fixed.
1 parent a3ad9e9 commit ca7cefe

File tree

5 files changed

+118
-64
lines changed

5 files changed

+118
-64
lines changed

info/dev/preparing-changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
- Share room url button added.
55
- Force Dev Mode option added into the `.env` file.
66
- New room viewer script to mobile.
7+
- Mobile css content place fixed.

src/scss/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ a {
536536
}
537537

538538
@import './messages/textarea.scss';
539+
@import './messages/embed.scss';
539540
@import './page/settings.scss';
540541

541542
#change-custom-status-img {

src/scss/messages/embed.scss

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
.message-embed {
2+
max-width: 450px;
3+
}
4+
5+
.message__threadSummary {
6+
width: 350px;
7+
}
8+
9+
@media (max-width: 450px) {
10+
.message-embed {
11+
max-width: 300px;
12+
}
13+
.message__threadSummary {
14+
width: 300px;
15+
}
16+
}
17+
@media (max-width: 400px) {
18+
.message-embed {
19+
max-width: 250px;
20+
}
21+
.message__threadSummary {
22+
width: 250px;
23+
}
24+
}
25+
@media (max-width: 350px) {
26+
.message-embed {
27+
max-width: 200px;
28+
}
29+
.message__threadSummary {
30+
width: 200px;
31+
}
32+
}
33+
@media (max-width: 300px) {
34+
.message-embed {
35+
max-width: 150px;
36+
}
37+
.message__threadSummary {
38+
width: 150px;
39+
}
40+
}
41+
@media (max-width: 250px) {
42+
.message-embed {
43+
max-width: 100px;
44+
}
45+
}
46+
@media (max-width: 200px) {
47+
.message-embed {
48+
max-width: 50px;
49+
}
50+
}
51+
@media (max-width: 150px) {
52+
.message-embed,
53+
.message__threadSummary {
54+
display: none !important;
55+
}
56+
}
57+
58+
.message-embed {
59+
.card {
60+
border-left-width: 5px;
61+
border-left-color: var(--default-embed-color);
62+
border-right: 0px;
63+
border-top: 0px;
64+
border-bottom: 0px;
65+
66+
.card-text {
67+
color: var(--tc-surface-low);
68+
}
69+
}
70+
.embed-img,
71+
.embed-thumb {
72+
max-width: unset !important;
73+
.image-container {
74+
height: auto !important;
75+
img {
76+
max-width: 100% !important;
77+
}
78+
}
79+
}
80+
.embed-img {
81+
background-color: transparent !important;
82+
}
83+
.embed-thumb {
84+
background-color: transparent !important;
85+
margin-left: 10px;
86+
img {
87+
height: 72px !important;
88+
}
89+
}
90+
.embed-video {
91+
background-color: #000;
92+
background-size: 100%;
93+
background-position: center;
94+
background-repeat: no-repeat;
95+
cursor: pointer;
96+
97+
.play-button {
98+
transition: background-color 0.1s;
99+
transition-timing-function: ease-in-out;
100+
background-color: rgba(255, 255, 255, 0.7);
101+
background-size: 50px;
102+
-webkit-filter: invert(100%);
103+
filter: invert(100%);
104+
background-position: center;
105+
background-repeat: no-repeat;
106+
pointer-events: none;
107+
}
108+
}
109+
110+
.embed-video:hover {
111+
cursor: pointer;
112+
.play-button {
113+
background-color: rgba(255, 255, 255, 0.8);
114+
}
115+
}
116+
}

src/scss/messages/textarea.scss

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -46,64 +46,3 @@
4646
display: none !important;
4747
}
4848
}
49-
50-
.message-embed {
51-
max-width: 450px;
52-
.card {
53-
border-left-width: 5px;
54-
border-left-color: var(--default-embed-color);
55-
border-right: 0px;
56-
border-top: 0px;
57-
border-bottom: 0px;
58-
59-
.card-text {
60-
color: var(--tc-surface-low);
61-
}
62-
}
63-
.embed-img,
64-
.embed-thumb {
65-
max-width: unset !important;
66-
.image-container {
67-
height: auto !important;
68-
img {
69-
max-width: 100% !important;
70-
}
71-
}
72-
}
73-
.embed-img {
74-
background-color: transparent !important;
75-
}
76-
.embed-thumb {
77-
background-color: transparent !important;
78-
margin-left: 10px;
79-
img {
80-
height: 72px !important;
81-
}
82-
}
83-
.embed-video {
84-
background-color: #000;
85-
background-size: 100%;
86-
background-position: center;
87-
background-repeat: no-repeat;
88-
cursor: pointer;
89-
90-
.play-button {
91-
transition: background-color 0.1s;
92-
transition-timing-function: ease-in-out;
93-
background-color: rgba(255, 255, 255, 0.7);
94-
background-size: 50px;
95-
-webkit-filter: invert(100%);
96-
filter: invert(100%);
97-
background-position: center;
98-
background-repeat: no-repeat;
99-
pointer-events: none;
100-
}
101-
}
102-
103-
.embed-video:hover {
104-
cursor: pointer;
105-
.play-button {
106-
background-color: rgba(255, 255, 255, 0.8);
107-
}
108-
}
109-
}

src/scss/utils/message-body.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@
126126
margin-top: var(--sp-extra-tight);
127127
cursor: pointer;
128128

129-
& {
130-
width: 350px;
131-
}
132129
&-count p {
133130
color: var(--tc-link);
134131
}

0 commit comments

Comments
 (0)