Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ src/locales/*.js

# Generated iconify icons
src/iconify-icons/

# direnv
.direnv/
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
description = "phanpy dev shell";

inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";

outputs = { self, nixpkgs }:
let
forAllSystems = nixpkgs.lib.genAttrs [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ];
in {
devShells = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
default = pkgs.mkShell {
packages = [ pkgs.nodejs ];
};
});
};
}
3 changes: 3 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2762,6 +2762,9 @@ ul.link-list li a .icon {
-1px 0 var(--bg-color),
-2px 0 var(--drop-shadow-color),
-3px 0 var(--bg-color);

transition: flex-basis 0.3s ease-in-out;

&:dir(rtl) {
box-shadow:
1px 0 var(--bg-color),
Expand Down
13 changes: 13 additions & 0 deletions src/components/columns.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useLingui } from '@lingui/react/macro';
import { useLayoutEffect } from 'preact/hooks';
import { useHotkeys } from 'react-hotkeys-hook';
import { useSnapshot } from 'valtio';

Expand All @@ -15,6 +16,7 @@ import Search from '../pages/search';
import Trending from '../pages/trending';
import isRTL from '../utils/is-rtl';
import states from '../utils/states';
import store from '../utils/store';
import { getCurrentAccountID } from '../utils/store-utils';
import useTitle from '../utils/useTitle';

Expand All @@ -32,6 +34,17 @@ function Columns() {

console.debug('RENDER Columns', shortcuts);

useLayoutEffect(() => {
const columnSize = store.local.get('columnSize');
if (!columnSize) return;
const col = document.getElementById('columns');
if (col) {
col.style.setProperty('--column-size', `${columnSize}px`);
} else {
console.warn('Failed to set column size: #columns not found');
}
}, []);

const components = shortcuts.map((shortcut) => {
if (!shortcut) return null;
const { type, ...params } = shortcut;
Expand Down
Loading
Loading