mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 10:22:25 +00:00
Mobile: stack the compact creator/account cards (Subscriptions, Friends, Blocked)
These cards were `flex justify-between` — three action buttons squeezed the name/npub into a tiny column, so the (break-all) npub wrapped to 4 lines and the whole card looked crammed on phones. - Shared .profile-account-card + .profile-account-card__actions classes on the Subscriptions, Friends and Blocked cards (was raw utility soup). - Desktop keeps the row layout (summary left, actions right). - Phones (<sm) stack it: summary on top at full width (name truncates on one line, npub fits on one line), actions as a full-width row of equal-width buttons with tighter padding below. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
c72c74d15b
commit
9ae49bf51f
3 files changed
+49
-7
No files matched your search
@@ -282,8 +282,7 @@ export class ProfileBlockListController {
|
||||
|
||||
deduped.forEach(({ hex, label }) => {
|
||||
const item = document.createElement("li");
|
||||
item.className =
|
||||
"card flex items-center justify-between gap-4 p-4";
|
||||
item.className = "card profile-account-card";
|
||||
|
||||
let cachedProfile = null;
|
||||
if (hex) {
|
||||
@@ -311,7 +310,7 @@ export class ProfileBlockListController {
|
||||
});
|
||||
|
||||
const actions = document.createElement("div");
|
||||
actions.className = "flex flex-wrap items-center justify-end gap-2";
|
||||
actions.className = "profile-account-card__actions";
|
||||
|
||||
const viewButton = this.mainController.createViewChannelButton({
|
||||
targetNpub: encodedNpub,
|
||||
|
||||
Reference in new issue
Block a user