Implement friends list and refactor components #28

Merged
twig merged 24 commits from friends-list into main 2025-07-12 17:28:43 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit a3feb07e73 - Show all commits

View file

@ -18,7 +18,7 @@
</h3>
</div>
<div id="channels-list">
<Channel v-for="channel of channels" :name="channel.name"
<ChannelEntry v-for="channel of channels" :name="channel.name"
:uuid="channel.uuid" :current-uuid="(route.params.channelId as string)"
:href="`/servers/${route.params.serverId}/channels/${channel.uuid}`" />
</div>
@ -33,6 +33,7 @@
</template>
<script lang="ts" setup>
import ChannelEntry from "~/components/Guild/ChannelEntry.vue";
const route = useRoute();
@ -90,7 +91,8 @@ function handleMemberClick(member: GuildMemberResponse) {
}
#members-container {
width: 15rem;
min-width: 15rem;
max-width: 15rem;
sauceyred marked this conversation as resolved

Why min-width and max-width instead of width? Is there a difference?

Why `min-width` and `max-width` instead of `width`? Is there a difference?

if we just set a width, it can expand, and it can shrink. I believe this is related to flexboxes deciding to grow in weird ways

you can see that the members list has a different width in the attachments

if we just set a width, it *can* expand, and it *can* shrink. I believe this is related to flexboxes deciding to grow in weird ways you can see that the members list has a different width in the attachments

Huh, weird, but okay.

Huh, weird, but okay.
border-left: 1px solid var(--padding-color);
background: var(--optional-member-list-background);
}