Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple fix: scrolling bug and dark theme issue (follow this) #2196

Open
devCKVargas opened this issue Jun 26, 2024 · 2 comments
Open

Simple fix: scrolling bug and dark theme issue (follow this) #2196

devCKVargas opened this issue Jun 26, 2024 · 2 comments

Comments

@devCKVargas
Copy link

devCKVargas commented Jun 26, 2024

This is a temporary fix, but I just wanna put this here for anyone.
Also fixes: #2155 (comment), #2180, #2194,
Does not fix: #2189

Instruction

  1. From the menu bar click File > Caprine Settings > Advanced > Custom Styles
    • If you get an error message saying: This file does not have an app associated with it for performing this action follow this fix (windows)
  2. Paste the code below, save it and close the notepad or whatever editor you use
  3. Click your caprine window to focus and Ctrl + R to reload the current changes

Another layout: no spacing and rounded corners

Code to paste in your custom.css:

/* variable */
.__fb-dark-mode {
	--card-spacing: 0px;
}

/* you can remove this to keep the space on the right most card*/
.x1mj4gcd.x1mj4gcd {
	padding-right: var(--card-spacing);
}

/* Remove top space between the cards and the menu bar */
.x13dmulc.x13dmulc {
	margin-top: var(--card-spacing); 
}

/* Fix user account picture cutout or bad spacing*/
.xz9dl7a.xz9dl7a  {
	padding-bottom: 6px; 
}

Before

before

After

after
cutout fixed

@devCKVargas
Copy link
Author

Fix of no app associated with .css

  1. Open your run command window by pressing:
Windows Key + R

screenshot of run command window

  1. Paste and run this:
%appdata%\Caprine\custom.css
  1. It should ask you what app should open the current file, select or find your text editor eg. notepad, code, sublime, etc..

screenshot of a pop-up asking the user to pick an app to open the custom.css file

@devCKVargas devCKVargas changed the title Fix: scrolling bug and dark theme issue (follow this) Simple fix: scrolling bug and dark theme issue (follow this) Jun 27, 2024
@devCKVargas
Copy link
Author

Code

/* variable */
.__fb-dark-mode {
	--card-spacing: 0px;
}

/* you can remove this to keep the space on the right most card*/
.x1mj4gcd.x1mj4gcd {
	padding-right: var(--card-spacing);
}

/* you can remove this to keep the space on the left most card (Inbox) */
.x1hys8i7.x1hys8i7 {
	padding-left: var(--card-spacing);
}

/* Removes the space from the left most corner */
.xdhzj85.xdhzj85 {
	margin-left: var(--card-spacing);
}

/* Remove top space between the cards and the menu bar */
.x13dmulc.x13dmulc {
	margin-top: var(--card-spacing); 
}

/* Fix user account picture cutout or bad spacing*/
.xz9dl7a.xz9dl7a  {
	padding-bottom: 6px; 
}

/* Removes the roundness of the corners */
.xzhurro.xzhurro, .xpyiiip.xpyiiip, .x88v6c3.x88v6c3, .x6gs93r.x6gs93r {
	border-radius: var(--card-spacing); 
}

Screenshot

Caprine_FO5s9pkgAx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant