fix: make sort dropdowns gap smaller
This commit is contained in:
1 parent
08fcf18573
commit
8a63202074
8 files changed
+17
-17
No files matched your search
+1
-1
@@ -14,7 +14,7 @@
|
||||
const setSelected = () => (selected = sort)
|
||||
</script>
|
||||
|
||||
<div class="flex flex-row gap-4 {$$props.class}">
|
||||
<div class="flex flex-row gap-2 {$$props.class}">
|
||||
{#if selected?.startsWith('Top')}
|
||||
<div transition:fly={{ x: 4 }}>
|
||||
<Select
|
||||
File renamed without changes.
@@ -65,14 +65,14 @@
|
||||
target="_blank"
|
||||
class="text-slate-700 dark:text-zinc-300 inline-flex items-center gap-1 text-sm"
|
||||
>
|
||||
<Icon src={LinkIcon} size="14" mini slot="icon" />
|
||||
<Icon src={LinkIcon} size="14" mini slot="icon" class="flex-shrink-0" />
|
||||
{#if richURL}
|
||||
<span>
|
||||
<div class="flex max-w-full overflow-hidden">
|
||||
{richURL.hostname}
|
||||
</span>
|
||||
<span class="text-slate-500 dark:text-zinc-500">
|
||||
{richURL.pathname}
|
||||
</span>
|
||||
<span class="text-slate-500 dark:text-zinc-500 whitespace-nowrap">
|
||||
{richURL.pathname}
|
||||
</span>
|
||||
</div>
|
||||
{:else}
|
||||
{url}
|
||||
{/if}
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
import StickyCard from '$lib/components/ui/StickyCard.svelte'
|
||||
import SiteCard from '$lib/components/lemmy/SiteCard.svelte'
|
||||
import Pageination from '$lib/components/ui/Pageination.svelte'
|
||||
import Sort from '$lib/components/lemmy/Sort.svelte'
|
||||
import Sort from '$lib/components/lemmy/dropdowns/Sort.svelte'
|
||||
import ViewSelect from '$lib/components/lemmy/dropdowns/ViewSelect.svelte'
|
||||
import { searchParam } from '$lib/util.js'
|
||||
import PostFeed from '$lib/components/lemmy/post/PostFeed.svelte'
|
||||
import { Button, Modal, Select, Spinner } from 'mono-svelte'
|
||||
import { ChartBar, GlobeAmericas, Icon, ServerStack } from 'svelte-hero-icons'
|
||||
import { profile } from '$lib/auth.js'
|
||||
import ViewSelect from '$lib/components/lemmy/ViewSelect.svelte'
|
||||
import { site } from '$lib/lemmy.js'
|
||||
import { amModOfAny } from '$lib/components/lemmy/moderation/moderation.js'
|
||||
import { feature } from '$lib/version.js'
|
||||
@@ -46,7 +46,7 @@
|
||||
</span>
|
||||
</h1>
|
||||
</header>
|
||||
<div class="flex flex-row gap-4 max-w-full justify-between w-full flex-wrap">
|
||||
<div class="flex flex-row gap-2 max-w-full justify-between w-full flex-wrap">
|
||||
<Select
|
||||
bind:value={data.listingType}
|
||||
on:change={() =>
|
||||
@@ -68,7 +68,7 @@
|
||||
</option>
|
||||
{/if}
|
||||
</Select>
|
||||
<div class="flex gap-4 flex-wrap">
|
||||
<div class="flex gap-2 flex-wrap">
|
||||
<Sort selected={data.sort} />
|
||||
<div class="max-[420px]:hidden">
|
||||
<ViewSelect />
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import CommunityCard from '$lib/components/lemmy/community/CommunityCard.svelte'
|
||||
import Pageination from '$lib/components/ui/Pageination.svelte'
|
||||
import Avatar from '$lib/components/ui/Avatar.svelte'
|
||||
import Sort from '$lib/components/lemmy/Sort.svelte'
|
||||
import Sort from '$lib/components/lemmy/dropdowns/Sort.svelte'
|
||||
import { fullCommunityName, searchParam } from '$lib/util.js'
|
||||
import { onDestroy, onMount } from 'svelte'
|
||||
import { setSessionStorage } from '$lib/session.js'
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import Pageination from '$lib/components/ui/Pageination.svelte'
|
||||
import { searchParam } from '$lib/util.js'
|
||||
import { Button, Material, Popover, Select, TextInput } from 'mono-svelte'
|
||||
import Sort from '$lib/components/lemmy/Sort.svelte'
|
||||
import Sort from '$lib/components/lemmy/dropdowns/Sort.svelte'
|
||||
import Placeholder from '$lib/components/ui/Placeholder.svelte'
|
||||
import CommunityItem from '$lib/components/lemmy/community/CommunityItem.svelte'
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { page } from '$app/stores'
|
||||
import { profile } from '$lib/auth.js'
|
||||
import ObjectAutocomplete from '$lib/components/lemmy/ObjectAutocomplete.svelte'
|
||||
import Sort from '$lib/components/lemmy/Sort.svelte'
|
||||
import Sort from '$lib/components/lemmy/dropdowns/Sort.svelte'
|
||||
import CommentItem from '$lib/components/lemmy/comment/CommentItem.svelte'
|
||||
import CommunityItem from '$lib/components/lemmy/community/CommunityItem.svelte'
|
||||
import Post from '$lib/components/lemmy/post/Post.svelte'
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { defaultSettings, userSettings } from '$lib/settings'
|
||||
import Setting from './Setting.svelte'
|
||||
import MultiSelect from '$lib/components/input/Switch.svelte'
|
||||
import Sort from '$lib/components/lemmy/Sort.svelte'
|
||||
import Sort from '$lib/components/lemmy/dropdowns/Sort.svelte'
|
||||
import { Disclosure, Material, Switch, TextInput, toast } from 'mono-svelte'
|
||||
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
|
||||
import Link from '$lib/components/input/Link.svelte'
|
||||
@@ -20,7 +20,7 @@
|
||||
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
|
||||
import { removalTemplate } from '$lib/components/lemmy/moderation/moderation.js'
|
||||
import { Button, Checkbox, Select } from 'mono-svelte'
|
||||
import ViewSelect from '$lib/components/lemmy/ViewSelect.svelte'
|
||||
import ViewSelect from '$lib/components/lemmy/dropdowns/ViewSelect.svelte'
|
||||
import { LINKED_INSTANCE_URL } from '$lib/instance.js'
|
||||
import { removeItem } from '$lib/util.js'
|
||||
import Section from './Section.svelte'
|
||||
@@ -72,7 +72,7 @@
|
||||
<Setting optionClass="flex-[2] max-w-full flex-wrap min-w-0">
|
||||
<span slot="title">Default sort</span>
|
||||
<span slot="description">The default sort to use for feeds.</span>
|
||||
<div class="flex max-[500px]:flex-col flex-wrap gap-4 w-max max-w-full">
|
||||
<div class="flex max-[500px]:flex-col flex-wrap gap-2 w-max max-w-full">
|
||||
<div class="max-w-full">
|
||||
<Select bind:value={$userSettings.defaultSort.feed}>
|
||||
<span slot="label" class="flex items-center gap-1">
|
||||
|
||||
Reference in new issue
Block a user