@import "../../packages/excalidraw/css/variables.module.scss"; .RoomList { display: flex; flex-direction: column; max-height: 400px; padding: 0 1rem; &__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.2rem; flex-shrink: 0; padding-top: 1rem; h3 { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--color-text); } } &__description { font-size: 0.9rem; color: var(--color-text-secondary); margin-bottom: 1rem; flex-shrink: 0; } &__clearAll { background: none; border: none; color: var(--color-text-secondary); font-size: 0.85rem; cursor: pointer; padding: 0.25rem 0.5rem; border-radius: 4px; transition: all 0.2s ease; &:hover { background-color: var(--color-surface-lowest); color: var(--color-text); } } &__loading { text-align: center; color: var(--color-text-secondary); padding: 2rem; flex: 1; display: flex; align-items: center; justify-content: center; } &__empty { text-align: center; color: var(--color-text-secondary); padding: 2rem; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; p { margin: 0.5rem 0; } p:first-child { font-weight: 500; } } &__items { display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; flex: 1; min-height: 0; padding-bottom: 1rem; } } .RoomItem { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; // background-color: var(--color-surface-low); border-radius: 8px; border: 1px solid var(--color-border); transition: all 0.2s ease; &:hover { background-color: var(--color-surface-high); border-color: var(--color-border-accent); } &__info { flex: 1; min-width: 0; // Allow text truncation } &__name { margin-bottom: 0.25rem; height: 1.5rem; // Fixed height for consistent layout display: flex; align-items: center; } &__nameText { font-weight: 500; color: var(--color-text); cursor: pointer; border-radius: 4px; transition: background-color 0.2s ease; display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 1.5rem; line-height: 1.5rem; padding: 0 0.25rem; margin: 0; box-sizing: border-box; } &__nameInput { font-weight: 500; color: var(--color-text); background: var(--color-surface-lowest); border: 1px solid var(--color-border-accent); border-radius: 4px; font-size: inherit; font-family: inherit; max-width: 200px; height: 1.5rem; line-height: 1.2; padding: 0 0.25rem; margin: 0; box-sizing: border-box; &:focus { outline: none; border-color: var(--color-accent); } } &__meta { display: flex; align-items: center; flex-direction: row; gap: 0.5rem; font-size: 0.8rem; color: var(--color-text-secondary); } &__date, &__lastAccessed { white-space: nowrap; } &__actions { display: flex; align-items: center; gap: 0.25rem; margin-left: 1rem; } &__action { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; background: none; border: none; border-radius: 4px; cursor: pointer; color: var(--color-text-secondary); transition: all 0.2s ease; svg { width: 1rem; height: 1rem; } &:hover { background-color: var(--color-surface-lowest); color: var(--color-text); } &--danger { &:hover { background-color: var(--color-error-low); color: var(--color-error); } } } } // Mobile responsiveness @media (max-width: 640px) { .RoomList { &__header { padding: 0 0.5rem; } &__items { padding: 0 0.5rem; } } .RoomItem { padding: 0.5rem; &__nameText { max-width: 150px; } &__nameInput { max-width: 150px; } &__meta { font-size: 0.75rem; flex-wrap: wrap; } &__actions { margin-left: 0.5rem; } &__action { width: 1.75rem; height: 1.75rem; svg { width: 0.875rem; height: 0.875rem; } } } }