GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [PATCH gwspamd 1/2] gwspamd: web: Shirnk the table to 40rem
@ 2023-04-18 22:37 Memet Zx
  2023-04-18 22:37 ` [PATCH gwspamd 2/2] gwspamd: web: Fix closing modal Memet Zx
  2023-04-18 22:45 ` [PATCH gwspamd 1/2] gwspamd: web: Shirnk the table to 40rem Ammar Faizi
  0 siblings, 2 replies; 3+ messages in thread
From: Memet Zx @ 2023-04-18 22:37 UTC (permalink / raw)
  To: Ammar Faizi; +Cc: Memet Zx, GNU/Weeb Mailing List, Memet Zx

in the previous view the table is to wide

Signed-off-by: Memet Zx <[email protected]>
---
 web/views/pages/profile.php | 62 +++++++++++++++++++------------------
 1 file changed, 32 insertions(+), 30 deletions(-)

diff --git a/web/views/pages/profile.php b/web/views/pages/profile.php
index ababdf6..a67ce79 100644
--- a/web/views/pages/profile.php
+++ b/web/views/pages/profile.php
@@ -3,35 +3,37 @@
 $opt["title"] = $u["full_name"];
 
 ?>
-<div class="mw-full text-center">
-	<img id="user-photo" class="img-fluid rounded-circle" src="<?= e($u["photo_path"]); ?>" alt="<?= e($u["full_name"]); ?> Images">
-	<div class="content">
-		<h1 class="font-weight-bolder"><?= $u["full_name"]; ?></h1>
-		<a href="settings.php?section=profile" class="btn btn-action m-5">Edit Profile</a>
+<div class="mw-full  text-center">
+	<img id="user-photo" class="img-fluid mt-5 rounded-circle" src="<?= e($u["photo_path"]); ?>" alt="<?= e($u["full_name"]); ?> Images">
 
-		<table class="table table-striped">
-			<tbody>
-				<tr>
-					<th>User ID</th>
-					<td><?= e($u["id"]); ?></td>
-				</tr>
-				<tr>
-					<th>First Name</th>
-					<td><?= e($u["first_name"]); ?></td>
-				</tr>
-				<tr>
-					<th>Last Name</th>
-					<td><?= e($u["last_name"]); ?></td>
-				</tr>
-				<tr>
-					<th>User Name</th>
-					<td><?= e($u["username"]); ?></td>
-				</tr>
-				<tr>
-					<th>Email</th>
-					<td><?= e($u["email"]); ?></td>
-				</tr>
-			</tbody>
-		</table>
-	</div>
+	<h1 class="font-weight-bolder"><?= $u["full_name"]; ?></h1>
+	<a href="settings.php?section=profile" class="btn btn-action m-5">Edit Profile</a>
 </div>
+
+<div class="mw-full d-flex justify-content-center">
+	<table class="table w-400 table-striped">
+		<tbody>
+			<tr>
+				<th>User ID</th>
+				<td><?= e($u["id"]); ?></td>
+			</tr>
+			<tr>
+				<th>First Name</th>
+				<td><?= e($u["first_name"]); ?></td>
+			</tr>
+			<tr>
+				<th>Last Name</th>
+				<td><?= e($u["last_name"]); ?></td>
+			</tr>
+			<tr>
+				<th>User Name</th>
+				<td><?= e($u["username"]); ?></td>
+			</tr>
+			<tr>
+				<th>Email</th>
+				<td><?= e($u["email"]); ?></td>
+			</tr>
+		</tbody>
+	</table>
+</div>
+</div>
\ No newline at end of file

base-commit: 957bf40743f17bfbe2a4b2ac37ff92c94a6444d6
-- 
Memet Zx


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH gwspamd 2/2] gwspamd: web: Fix closing modal
  2023-04-18 22:37 [PATCH gwspamd 1/2] gwspamd: web: Shirnk the table to 40rem Memet Zx
@ 2023-04-18 22:37 ` Memet Zx
  2023-04-18 22:45 ` [PATCH gwspamd 1/2] gwspamd: web: Shirnk the table to 40rem Ammar Faizi
  1 sibling, 0 replies; 3+ messages in thread
From: Memet Zx @ 2023-04-18 22:37 UTC (permalink / raw)
  To: Ammar Faizi; +Cc: Memet Zx, GNU/Weeb Mailing List, Memet Zx

typo when closing modal, shouldn't have to use the same modal id,
just use `modal` for example `data-dismiss="modal"`.

Signed-off-by: Memet Zx <[email protected]>
---
 web/views/components/modal.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/views/components/modal.php b/web/views/components/modal.php
index 03176b8..08e86b9 100644
--- a/web/views/components/modal.php
+++ b/web/views/components/modal.php
@@ -26,8 +26,8 @@
             <input type="range" min="1" max="5" value="1" step="0.01" id="photo_range" style="display: none;" />
             <input type="file" id="photo" name="photo" accept=".jpg,.png,.gif,.jpeg" />
             <div class="text-right mt-20">
-                <button type="button" onclick="apply_photo();" data-dismiss="modal-profile" class="btn">Apply photo</button>
-                <button class="btn" data-dismiss="modal-profile">Close</button>
+                <button type="button" onclick="apply_photo();" data-dismiss="modal" class="btn">Apply photo</button>
+                <button class="btn" data-dismiss="modal">Close</button>
             </div>
         </div>
     </div>
-- 
Memet Zx


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH gwspamd 1/2] gwspamd: web: Shirnk the table to 40rem
  2023-04-18 22:37 [PATCH gwspamd 1/2] gwspamd: web: Shirnk the table to 40rem Memet Zx
  2023-04-18 22:37 ` [PATCH gwspamd 2/2] gwspamd: web: Fix closing modal Memet Zx
@ 2023-04-18 22:45 ` Ammar Faizi
  1 sibling, 0 replies; 3+ messages in thread
From: Ammar Faizi @ 2023-04-18 22:45 UTC (permalink / raw)
  To: Memet Zx; +Cc: Ammar Faizi, GNU/Weeb Mailing List, Memet Zx

On Wed, 19 Apr 2023 05:37:25 +0700, Memet Zx wrote:
> in the previous view the table is to wide
> 
> 

Applied, thanks!

[1/2] gwspamd: web: Shirnk the table to 40rem
      commit: a0d163ac4da4178467f9be26e4a936779c9269e7
[2/2] gwspamd: web: Fix closing modal
      commit: dbb57d61ed9e417582c571af92d364c3889afaf7

Best regards,
-- 
Ammar Faizi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-18 22:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-18 22:37 [PATCH gwspamd 1/2] gwspamd: web: Shirnk the table to 40rem Memet Zx
2023-04-18 22:37 ` [PATCH gwspamd 2/2] gwspamd: web: Fix closing modal Memet Zx
2023-04-18 22:45 ` [PATCH gwspamd 1/2] gwspamd: web: Shirnk the table to 40rem Ammar Faizi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox