Skip to content

Commit 7e67085

Browse files
committed
iterate compatibility page and make styling consistent between firefox and chrome
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 30fa3a9 commit 7e67085

5 files changed

Lines changed: 10 additions & 15 deletions

File tree

‎res/css/structures/ErrorView.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ limitations under the License.
2525
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c5e0f7', endColorstr='#ffffff',GradientType=0 );
2626
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
2727
width: 100%;
28+
min-height: 100%;
2829
height: auto;
2930
color: #000;
3031

‎src/components/structures/CompatibilityPage.tsx‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ const CompatibilityPage: React.FC<IProps> = ({ onAccept }) => {
3939
<div className="mx_HomePage_col">
4040
<div className="mx_HomePage_row">
4141
<div>
42-
<h2 id="step1_heading">{ _t("Use Riot in a browser") }</h2>
43-
<p>{ _t("Sorry, your browser is <b>not</b> able to run Riot.", {}, { 'b': (sub) => <b>{sub}</b> }) } </p>
42+
<h2 id="step1_heading">{ _t("Your browser can't run Riot") }</h2>
4443
<p>
4544
{ _t(
46-
"Riot uses many advanced browser features, some of which are not available " +
47-
"or experimental in your current browser.",
45+
"Riot uses advanced browser features which aren't supported by your current browser.",
4846
) }
4947
</p>
5048
<p>
@@ -61,10 +59,8 @@ const CompatibilityPage: React.FC<IProps> = ({ onAccept }) => {
6159
</p>
6260
<p>
6361
{ _t(
64-
"With your current browser, the look and feel of the application may be " +
65-
"completely incorrect, and some or all features may not function. " +
66-
"If you want to try it anyway you can continue, but you are on your own in terms " +
67-
"of any issues you may encounter!",
62+
"You can continue using your current browser, but some or all features may not work " +
63+
"and the look and feel of the application may be incorrect.",
6864
) }
6965
</p>
7066
<button onClick={onAccept}>

‎src/i18n/strings/en_EN.json‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020
"You can use the custom server options to sign into other Matrix servers by specifying a different homeserver URL. This allows you to use Riot with an existing Matrix account on a different homeserver.": "You can use the custom server options to sign into other Matrix servers by specifying a different homeserver URL. This allows you to use Riot with an existing Matrix account on a different homeserver.",
2121
"Dismiss": "Dismiss",
2222
"Unsupported browser": "Unsupported browser",
23-
"Use Riot in a browser": "Use Riot in a browser",
24-
"Sorry, your browser is <b>not</b> able to run Riot.": "Sorry, your browser is <b>not</b> able to run Riot.",
25-
"Riot uses many advanced browser features, some of which are not available or experimental in your current browser.": "Riot uses many advanced browser features, some of which are not available or experimental in your current browser.",
23+
"Your browser can't run Riot": "Your browser can't run Riot",
24+
"Riot uses advanced browser features which aren't supported by your current browser.": "Riot uses advanced browser features which aren't supported by your current browser.",
2625
"Please install <chromeLink>Chrome</chromeLink>, <firefoxLink>Firefox</firefoxLink>, or <safariLink>Safari</safariLink> for the best experience.": "Please install <chromeLink>Chrome</chromeLink>, <firefoxLink>Firefox</firefoxLink>, or <safariLink>Safari</safariLink> for the best experience.",
27-
"With your current browser, the look and feel of the application may be completely incorrect, and some or all features may not function. If you want to try it anyway you can continue, but you are on your own in terms of any issues you may encounter!": "With your current browser, the look and feel of the application may be completely incorrect, and some or all features may not function. If you want to try it anyway you can continue, but you are on your own in terms of any issues you may encounter!",
26+
"You can continue using your current browser, but some or all features may not work and the look and feel of the application may be incorrect.": "You can continue using your current browser, but some or all features may not work and the look and feel of the application may be incorrect.",
2827
"I understand the risks and wish to continue": "I understand the risks and wish to continue",
2928
"Failed to start": "Failed to start",
3029
"Welcome to Riot.im": "Welcome to Riot.im",

‎src/vector/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<% }
5050
} %>
5151
</head>
52-
<body style="height: 100%;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.chunks['indexeddb-worker'].entry %>">
52+
<body style="height: 100%; margin: 0;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.chunks['indexeddb-worker'].entry %>">
5353
<noscript>Sorry, Riot requires JavaScript to be enabled.</noscript> <!-- TODO: Translate this? -->
5454
<section id="matrixchat" style="height: 100%; overflow: auto;"></section>
5555
<script src="<%= htmlWebpackPlugin.files.chunks['bundle'].entry %>"></script>

‎src/vector/static/incompatible-browser.html‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ <h1>Unsupported browser</h1>
168168
<div class="mx_HomePage_col">
169169
<div class="mx_HomePage_row">
170170
<div>
171-
<h2 id="step1_heading">Use Riot in a browser</h2>
172-
<p>Sorry, your browser is <b>not</b> able to run Riot.</p>
171+
<h2 id="step1_heading">Your browser can't run Riot</h2>
173172
<p>Riot uses many advanced browser features, some of which are not available or experimental in your current browser.</p>
174173
<p>Please install <a href="https://www.google.com/chrome">Chrome</a>, <a href="https://firefox.com">Firefox</a>,
175174
or <a href="https://apple.com/safari">Safari</a> for the best experience.</p>

0 commit comments

Comments
 (0)