From 96234dff7bf063f6eaa0264ff6c1fb8bb8eca287 Mon Sep 17 00:00:00 2001 From: harshil05133 Date: Mon, 17 Feb 2025 19:47:25 -0500 Subject: [PATCH] Added the button to the html file and made it more like the other buttons --- src/locales/en.json | 2 +- src/node/utils/toolbar.ts | 2 +- src/static/css/pad/home.css | 5 +++-- src/static/css/pad/icons.css | 4 ++-- ui/pad.html | 5 +++++ 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 55074abdb..69de63564 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -54,7 +54,7 @@ "pad.toolbar.settings.title": "Settings", "pad.toolbar.embed.title": "Share and Embed this pad", "pad.toolbar.showusers.title": "Show the users on this pad", - "pad.toolbar.gohome.title": "Go back to home page", + "pad.toolbar.gohome.title": "Go Home", "pad.colorpicker.save": "Save", diff --git a/src/node/utils/toolbar.ts b/src/node/utils/toolbar.ts index 119181e33..74a051cf1 100644 --- a/src/node/utils/toolbar.ts +++ b/src/node/utils/toolbar.ts @@ -244,7 +244,7 @@ module.exports = { gohome:{ command: 'gohome', localizationId: 'pad.toolbar.gohome.title', - class: 'homeicon homeicon-exit', + class: 'buttonicon buttonicon-gohome', }, timeslider_export: { diff --git a/src/static/css/pad/home.css b/src/static/css/pad/home.css index 811a22a29..1c35ce02b 100644 --- a/src/static/css/pad/home.css +++ b/src/static/css/pad/home.css @@ -1,9 +1,10 @@ -.homeicon-exit:before { +/*.homeicon-exit:before { content: "\2302"; - margin-right: 5px; + margin-right: 3px; } .homeicon:hover{ background-color: grey; } +*/ \ No newline at end of file diff --git a/src/static/css/pad/icons.css b/src/static/css/pad/icons.css index dd17f45eb..ffe6b681a 100644 --- a/src/static/css/pad/icons.css +++ b/src/static/css/pad/icons.css @@ -74,8 +74,8 @@ .buttonicon-showusers:before { content: "\e835"; } -.buttonicon-showusers:before { - content: "\e835"; +.buttonicon-gohome:before { + content: "\e80b"; /* Assuming \e80b is the Unicode for the home icon */ } .buttonicon-savedRevision:before { content: "\e856"; diff --git a/ui/pad.html b/ui/pad.html index e11541943..619dca8c8 100644 --- a/ui/pad.html +++ b/ui/pad.html @@ -77,6 +77,11 @@
  • +
  • + + + +