Skip to content

Commit f50a1e4

Browse files
committed
Aesthetic patch.
1 parent a5eee33 commit f50a1e4

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

assets/template_bluemetal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>phpMussel</title>
99
<style>
1010
#wrapper,#pp{font-weight:700}
11-
#wrapper{background-color:#678;border-style:solid;border-color:#222;width:calc(100% - 10px);margin:auto;padding:2px;border-top-right-radius:24px}
11+
#wrapper{background-color:#678;border-style:solid;border-color:#222;width:calc(100% - 10px);margin:auto;padding:2px;border-top-{FE_Align_Reverse}-radius:24px}
1212
body,#wrapper{text-align:center}
1313
hr,#wrapper{border-width:1px}
1414
#wrapper_inner{width:96%;margin:auto;padding:2px}

assets/template_default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>phpMussel</title>
99
<style>
1010
#wrapper,#pp{font-weight:700}
11-
#wrapper{background-color:#fff;border-style:solid;border-color:#999;width:calc(100% - 10px);margin:auto;padding:2px;border-top-right-radius:24px}
11+
#wrapper{background-color:#fff;border-style:solid;border-color:#999;width:calc(100% - 10px);margin:auto;padding:2px;border-top-{FE_Align_Reverse}-radius:24px}
1212
body,#wrapper{text-align:center}
1313
hr,#wrapper{border-width:1px}
1414
#wrapper_inner{width:96%;margin:auto;padding:2px}

assets/template_fullmoon.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>phpMussel</title>
99
<style>
1010
#wrapper,#pp{font-weight:700}
11-
#wrapper{border-style:solid;border-color:#aaa;background-color:#3e4643;width:calc(100% - 10px);margin:auto;padding:2px;border-top-right-radius:24px}
11+
#wrapper{border-style:solid;border-color:#aaa;background-color:#3e4643;width:calc(100% - 10px);margin:auto;padding:2px;border-top-{FE_Align_Reverse}-radius:24px}
1212
body,#wrapper{text-align:center}
1313
hr,#wrapper{border-width:1px}
1414
#wrapper_inner{width:96%;margin:auto;padding:2px}

assets/template_moss.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>phpMussel</title>
99
<style>
1010
#wrapper,#pp{font-weight:700}
11-
#wrapper{background-color:rgba(192,240,160,0.6);border-style:solid;border-color:#604848;width:calc(100% - 10px);margin:auto;padding:2px;border-top-right-radius:24px}
11+
#wrapper{background-color:rgba(192,240,160,0.6);border-style:solid;border-color:#604848;width:calc(100% - 10px);margin:auto;padding:2px;border-top-{FE_Align_Reverse}-radius:24px}
1212
body,#wrapper{text-align:center}
1313
hr,#wrapper{border-width:1px}
1414
#wrapper_inner{width:96%;margin:auto;padding:2px}

assets/template_rbi.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>phpMussel</title>
99
<style>
1010
#wrapper,#pp{font-weight:700}
11-
#wrapper{background-color:#fff;border-style:solid;border-color:#999;width:calc(100% - 10px);margin:auto;padding:2px;border-top-right-radius:24px}
11+
#wrapper{background-color:#fff;border-style:solid;border-color:#999;width:calc(100% - 10px);margin:auto;padding:2px;border-top-{FE_Align_Reverse}-radius:24px}
1212
body,#wrapper{text-align:center}
1313
hr,#wrapper{border-width:1px}
1414
#wrapper_inner{width:96%;margin:auto;padding:2px}

assets/template_slate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>phpMussel</title>
99
<style>
1010
#wrapper,#pp{font-weight:700}
11-
#wrapper{background-color:#2f2f2f;border-style:solid;border-color:#393939;width:calc(100% - 10px);margin:auto;padding:2px;border-top-right-radius:24px}
11+
#wrapper{background-color:#2f2f2f;border-style:solid;border-color:#393939;width:calc(100% - 10px);margin:auto;padding:2px;border-top-{FE_Align_Reverse}-radius:24px}
1212
body,#wrapper{text-align:center}
1313
hr,#wrapper{border-width:1px}
1414
#wrapper_inner{width:96%;margin:auto;padding:2px}

src/Web.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Upload handler (last modified: 2023.04.01).
11+
* This file: Upload handler (last modified: 2023.04.02).
1212
*/
1313

1414
namespace phpMussel\Web;
@@ -298,7 +298,9 @@ public function scan()
298298
'detected' => $Detections,
299299
'favicon' => base64_encode($this->Loader->getFavicon()),
300300
'xmlLang' => $this->Loader->L10NAccepted,
301-
'Text Direction' => $this->Loader->L10N->Directionality
301+
'Text Direction' => $this->Loader->L10N->Directionality,
302+
'FE_Align' => $this->Loader->L10N->Directionality === 'rtl' ? 'right' : 'left',
303+
'FE_Align_Reverse' => $this->Loader->L10N->Directionality === 'rtl' ? 'left' : 'right'
302304
];
303305

304306
/** Pull relevant client-specified L10N data. */

0 commit comments

Comments
 (0)