Compare commits
9 Commits
22c4666fa7
...
7d1be226b6
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d1be226b6 | |||
| 65ed53c5d1 | |||
| ff5d9724d6 | |||
| 8859449be5 | |||
| f0ace2b43f | |||
| 07f78510ed | |||
| 4870318148 | |||
| c9f9f3ef6c | |||
| d82d2bba20 |
+38
-12
@@ -10,6 +10,7 @@
|
|||||||
<link rel="stylesheet" href="static/error/error.css" />
|
<link rel="stylesheet" href="static/error/error.css" />
|
||||||
<link rel="stylesheet" href="static/profile_page.css" />
|
<link rel="stylesheet" href="static/profile_page.css" />
|
||||||
<link rel="stylesheet" href="static/progress_bar.css" />
|
<link rel="stylesheet" href="static/progress_bar.css" />
|
||||||
|
<link rel="stylesheet" href="static/cursor.css" />
|
||||||
|
|
||||||
<div id="popup_background" class="blocked hidden"></div>
|
<div id="popup_background" class="blocked hidden"></div>
|
||||||
|
|
||||||
@@ -102,8 +103,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="resize_photo_dialouge" class="card static_center hidden">
|
<div id="resize_photo_dialouge" class="card static_center hidden">
|
||||||
|
<div id="image_container">
|
||||||
|
<img id="new_profile_image" alt="new-profile-image" />
|
||||||
|
<div id="darken_part"></div>
|
||||||
|
</div>
|
||||||
<div id="resize_photo_box"></div>
|
<div id="resize_photo_box"></div>
|
||||||
<img id="new_profile_image" alt="new-profile-image" />
|
<button id="confirm_change">Confirm Change</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<img id="logo_image" alt="logo" src="/logo" />
|
<img id="logo_image" alt="logo" src="/logo" />
|
||||||
@@ -173,26 +178,42 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script src="/static/javascript/cursor.js" type="text/javascript"></script>
|
||||||
|
<script
|
||||||
|
src="/static/javascript/resize_photo_dialouge.js"
|
||||||
|
type="text/javascript"
|
||||||
|
></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
const button = document.getElementById("edit_picture_button");
|
const button = document.getElementById("edit_picture_button");
|
||||||
const fileInput = document.getElementById("file_input");
|
const fileInput = document.getElementById("file_input");
|
||||||
|
const confirm_change = document.getElementById("confirm_change");
|
||||||
|
const new_profile_image = document.getElementById("new_profile_image");
|
||||||
|
|
||||||
button.addEventListener("click", () => {
|
button.addEventListener("click", () => {
|
||||||
fileInput.click(); // opens file picker
|
fileInput.click();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var currentPreviewURL = null;
|
var currentPreviewURL = null,
|
||||||
|
image = null,
|
||||||
|
file = null;
|
||||||
|
|
||||||
|
var x_start = 0,
|
||||||
|
y_start = 0;
|
||||||
|
|
||||||
|
var bitmap;
|
||||||
|
|
||||||
fileInput.addEventListener("change", async () => {
|
fileInput.addEventListener("change", async () => {
|
||||||
document.getElementById("popup_background").classList.remove("hidden");
|
document.getElementById("popup_background").classList.remove("hidden");
|
||||||
|
|
||||||
const file = fileInput.files[0];
|
file = fileInput.files[0];
|
||||||
if (!file) return;
|
if (!file) return;
|
||||||
if (file.type !== "image/jpeg") {
|
if (file.type !== "image/jpeg") {
|
||||||
alert("Only JPEG images are allowed.");
|
alert("Only JPEG images are allowed.");
|
||||||
fileInput.value = "";
|
fileInput.value = "";
|
||||||
|
document.getElementById("popup_background").classList.add("hidden");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -200,19 +221,24 @@
|
|||||||
.getElementById("resize_photo_dialouge")
|
.getElementById("resize_photo_dialouge")
|
||||||
.classList.remove("hidden");
|
.classList.remove("hidden");
|
||||||
|
|
||||||
var image = URL.createObjectURL(file);
|
image = URL.createObjectURL(file);
|
||||||
const bitmap = await createImageBitmap(file);
|
bitmap = await createImageBitmap(file);
|
||||||
|
|
||||||
var new_profile_image = document.getElementById("new_profile_image");
|
|
||||||
new_profile_image.src = image;
|
new_profile_image.src = image;
|
||||||
var resize_photo_box = document.getElementById("resize_photo_box");
|
|
||||||
|
|
||||||
resize_photo_box.style.setProperty("--img-width", bitmap.width + "px");
|
|
||||||
resize_photo_box.style.setProperty(
|
resize_photo_box.style.setProperty(
|
||||||
"--img-height",
|
"--image-width",
|
||||||
bitmap.height + "px",
|
bitmap.width + "px",
|
||||||
);
|
);
|
||||||
return;
|
|
||||||
|
new_profile_image.style.setProperty("--x-offset", "0px");
|
||||||
|
new_profile_image.style.setProperty("--y-offset", "0px");
|
||||||
|
});
|
||||||
|
|
||||||
|
confirm_change.addEventListener("click", async () => {
|
||||||
|
document
|
||||||
|
.getElementById("resize_photo_dialouge")
|
||||||
|
.classList.add("hidden");
|
||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("photo", file);
|
formData.append("photo", file);
|
||||||
|
|||||||
@@ -38,10 +38,6 @@ func (manager *SessionManager) SetStoreType(storeType StoreType, params ...any)
|
|||||||
case InMemory:
|
case InMemory:
|
||||||
{
|
{
|
||||||
manager.store = store.NewMemoryStore[*SessionData]()
|
manager.store = store.NewMemoryStore[*SessionData]()
|
||||||
// worker.CreateWorker(time.Minute*5, func() {
|
|
||||||
// inMemStore, _ := manager.store.(*store.MemoryStore[*SessionData])
|
|
||||||
// cleanupInMemoryStore(inMemStore)
|
|
||||||
// })
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
case Redis:
|
case Redis:
|
||||||
@@ -109,23 +105,6 @@ func (manager *SessionManager) GetSession(r *http.Request) (*SessionData, error)
|
|||||||
return data, nil
|
return data, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// func cleanupInMemoryStore(m *store.MemoryStore[*SessionData]) {
|
|
||||||
// logging.Debug("Cleaning up memory store sessions")
|
|
||||||
// now := time.Now()
|
|
||||||
|
|
||||||
// m.Lock.Lock()
|
|
||||||
// defer m.Lock.Unlock()
|
|
||||||
|
|
||||||
// deleted := 0
|
|
||||||
// for id, session := range m.Sessions {
|
|
||||||
// if now.After(session.ExpiresAt) {
|
|
||||||
// delete(m.Sessions, id)
|
|
||||||
// deleted = deleted + 1
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// logging.Infof("Cleaned up %d stale sessions", deleted)
|
|
||||||
// }
|
|
||||||
|
|
||||||
func (manager *SessionManager) DeleteSession(sessionId string) error {
|
func (manager *SessionManager) DeleteSession(sessionId string) error {
|
||||||
return manager.store.Delete(sessionId)
|
return manager.store.Delete(sessionId)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,58 +5,122 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"astraltech.xyz/accountmanager/src/logging"
|
"astraltech.xyz/accountmanager/src/logging"
|
||||||
|
"astraltech.xyz/accountmanager/src/worker"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ValueEntry[Value any] struct {
|
type KeyValue[Value any] struct {
|
||||||
value Value
|
value Value
|
||||||
expiry time.Time
|
expireTime time.Time
|
||||||
|
}
|
||||||
|
|
||||||
|
type ExpireTime struct {
|
||||||
|
expiryTime time.Time
|
||||||
|
key string
|
||||||
}
|
}
|
||||||
|
|
||||||
type MemoryStore[Value any] struct {
|
type MemoryStore[Value any] struct {
|
||||||
Keys map[string]ValueEntry[Value]
|
Keys map[string]KeyValue[Value]
|
||||||
|
Lock sync.RWMutex
|
||||||
Lock sync.RWMutex
|
ExpireTimes []ExpireTime
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewMemoryStore[Value any]() *MemoryStore[Value] {
|
func NewMemoryStore[Value any]() *MemoryStore[Value] {
|
||||||
logging.Debug("Creating new in memory session store")
|
logging.Debug("Creating new in memory session store")
|
||||||
store := &MemoryStore[Value]{
|
store := &MemoryStore[Value]{
|
||||||
Keys: make(map[string]ValueEntry[Value]),
|
Keys: make(map[string]KeyValue[Value]),
|
||||||
|
Lock: sync.RWMutex{},
|
||||||
|
ExpireTimes: []ExpireTime{},
|
||||||
}
|
}
|
||||||
|
worker.CreateWorker(time.Minute*5, store.CleanupExpired)
|
||||||
return store
|
return store
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MemoryStore[Value]) CreateExpiring(key string, value Value, duration time.Duration) error {
|
func (m *MemoryStore[Value]) CreateExpiring(key string, value Value, duration time.Duration) error {
|
||||||
hashedkey := HashKey(key)
|
var expiry time.Time
|
||||||
|
if duration != 0 {
|
||||||
|
expiry = time.Now().Add(duration)
|
||||||
|
}
|
||||||
|
|
||||||
m.Lock.Lock()
|
m.Lock.Lock()
|
||||||
defer m.Lock.Unlock()
|
defer m.Lock.Unlock()
|
||||||
|
|
||||||
|
hashedkey := HashKey(key)
|
||||||
_, exist := m.Keys[hashedkey]
|
_, exist := m.Keys[hashedkey]
|
||||||
if exist {
|
if exist {
|
||||||
return ErrKeyAlreadyExists
|
return ErrKeyAlreadyExists
|
||||||
}
|
}
|
||||||
|
|
||||||
m.Keys[hashedkey] = ValueEntry[Value]{
|
m.Keys[hashedkey] = KeyValue[Value]{
|
||||||
value: value,
|
value: value,
|
||||||
expiry: time.Now().Add(duration),
|
expireTime: expiry,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if duration != 0 {
|
||||||
|
low := 0
|
||||||
|
high := len(m.ExpireTimes)
|
||||||
|
|
||||||
|
for low < high {
|
||||||
|
mid := (low + high) / 2
|
||||||
|
|
||||||
|
if m.ExpireTimes[mid].expiryTime.Before(expiry) {
|
||||||
|
low = mid + 1
|
||||||
|
} else {
|
||||||
|
high = mid
|
||||||
|
}
|
||||||
|
}
|
||||||
|
insertIndex := low
|
||||||
|
|
||||||
|
m.ExpireTimes = append(m.ExpireTimes, ExpireTime{})
|
||||||
|
copy(m.ExpireTimes[insertIndex+1:], m.ExpireTimes[insertIndex:])
|
||||||
|
m.ExpireTimes[insertIndex] = ExpireTime{
|
||||||
|
key: key,
|
||||||
|
expiryTime: expiry,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *MemoryStore[Value]) CleanupExpired() {
|
||||||
|
m.Lock.Lock()
|
||||||
|
defer m.Lock.Unlock()
|
||||||
|
|
||||||
|
now := time.Now()
|
||||||
|
for len(m.ExpireTimes) > 0 && !now.Before(m.ExpireTimes[0].expiryTime) {
|
||||||
|
key, exists := m.Keys[HashKey(m.ExpireTimes[0].key)]
|
||||||
|
if exists && key.expireTime.Equal(m.ExpireTimes[0].expiryTime) {
|
||||||
|
m.deleteWithoutLock(m.ExpireTimes[0].key)
|
||||||
|
}
|
||||||
|
m.ExpireTimes = m.ExpireTimes[1:]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (m *MemoryStore[Value]) Create(key string, session Value) error {
|
func (m *MemoryStore[Value]) Create(key string, session Value) error {
|
||||||
return m.CreateExpiring(key, session, 0)
|
return m.CreateExpiring(key, session, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MemoryStore[Value]) Get(key string) (Value, error) {
|
func (m *MemoryStore[Value]) Get(key string) (Value, error) {
|
||||||
var data ValueEntry[Value]
|
var data KeyValue[Value]
|
||||||
|
var zeroValue Value
|
||||||
|
hashedkey := HashKey(key)
|
||||||
|
|
||||||
m.Lock.RLock()
|
m.Lock.RLock()
|
||||||
hashedkey := HashKey(key)
|
|
||||||
data, exists := m.Keys[hashedkey]
|
data, exists := m.Keys[hashedkey]
|
||||||
m.Lock.RUnlock()
|
m.Lock.RUnlock()
|
||||||
if exists == false {
|
|
||||||
return data.value, ErrKeyNotFound
|
if !exists {
|
||||||
|
return zeroValue, ErrKeyNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !data.expireTime.IsZero() && !time.Now().Before(data.expireTime) {
|
||||||
|
m.Lock.Lock()
|
||||||
|
if current, ok := m.Keys[hashedkey]; ok && current.expireTime.Equal(data.expireTime) {
|
||||||
|
delete(m.Keys, hashedkey)
|
||||||
|
}
|
||||||
|
m.Lock.Unlock()
|
||||||
|
return zeroValue, ErrKeyNotFound
|
||||||
|
}
|
||||||
|
|
||||||
return data.value, nil
|
return data.value, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,22 +129,20 @@ func (m *MemoryStore[Value]) Update(sessionID string, value Value) error {
|
|||||||
|
|
||||||
m.Lock.Lock()
|
m.Lock.Lock()
|
||||||
defer m.Lock.Unlock()
|
defer m.Lock.Unlock()
|
||||||
current_key, exist := m.Keys[hashedkey]
|
old_key, exist := m.Keys[hashedkey]
|
||||||
if !exist {
|
if !exist {
|
||||||
return ErrKeyNotFound
|
return ErrKeyNotFound
|
||||||
}
|
}
|
||||||
m.Keys[hashedkey] = ValueEntry[Value]{
|
m.Keys[hashedkey] = KeyValue[Value]{
|
||||||
value: value,
|
value: value,
|
||||||
expiry: current_key.expiry,
|
expireTime: old_key.expireTime,
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MemoryStore[Value]) Delete(sessionID string) error {
|
func (m *MemoryStore[Value]) deleteWithoutLock(key string) error {
|
||||||
hashedkey := HashKey(sessionID)
|
hashedkey := HashKey(key)
|
||||||
|
|
||||||
m.Lock.Lock()
|
|
||||||
defer m.Lock.Unlock()
|
|
||||||
_, exist := m.Keys[hashedkey]
|
_, exist := m.Keys[hashedkey]
|
||||||
if !exist {
|
if !exist {
|
||||||
return ErrKeyNotFound
|
return ErrKeyNotFound
|
||||||
@@ -88,3 +150,9 @@ func (m *MemoryStore[Value]) Delete(sessionID string) error {
|
|||||||
delete(m.Keys, hashedkey)
|
delete(m.Keys, hashedkey)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *MemoryStore[Value]) Delete(key string) error {
|
||||||
|
m.Lock.Lock()
|
||||||
|
defer m.Lock.Unlock()
|
||||||
|
return m.deleteWithoutLock(key)
|
||||||
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.static_center {
|
.static_center {
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
.cursor_grabbing {
|
||||||
|
cursor: grabbing;
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
var currentX, currentY;
|
||||||
|
|
||||||
|
document.addEventListener("mousemove", (e) => {
|
||||||
|
const rect = document.body.getBoundingClientRect();
|
||||||
|
|
||||||
|
currentX = e.clientX;
|
||||||
|
currentY = e.clientY;
|
||||||
|
});
|
||||||
|
|
||||||
|
const CURSOR_NORMAL = "cursor_normal";
|
||||||
|
const CURSOR_GRABBING = "cursor_grabbing";
|
||||||
|
|
||||||
|
document.body.classList.remove(CURSOR_NORMAL);
|
||||||
|
|
||||||
|
let current_cursor_state = CURSOR_NORMAL;
|
||||||
|
function set_cursor_state(new_cursor_state) {
|
||||||
|
document.body.classList.remove(current_cursor_state);
|
||||||
|
document.body.classList.add(new_cursor_state);
|
||||||
|
current_cursor_state = new_cursor_state;
|
||||||
|
}
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
const resize_photo_box = document.getElementById("resize_photo_box");
|
||||||
|
|
||||||
|
// Drag handling
|
||||||
|
var startXOffset = 0,
|
||||||
|
startYOffset = 0;
|
||||||
|
|
||||||
|
function calculateOffsets() {
|
||||||
|
const yOffset = startYOffset + (currentY - y_start);
|
||||||
|
const xOffset = startXOffset + (currentX - x_start);
|
||||||
|
|
||||||
|
var top = bitmap.height / 2 - yOffset - 175;
|
||||||
|
if (top > 0) top = 0;
|
||||||
|
|
||||||
|
var bottom = -(bitmap.height / 2) - yOffset + 10 + 175;
|
||||||
|
if (bottom < 0) bottom = 0;
|
||||||
|
|
||||||
|
var left = bitmap.width / 2 - xOffset - 175;
|
||||||
|
if (left > 0) left = 0;
|
||||||
|
|
||||||
|
var right = -(bitmap.width / 2) - xOffset + 10 + 175;
|
||||||
|
if (right < 0) right = 0;
|
||||||
|
return { x: xOffset + left + right, y: yOffset + top + bottom };
|
||||||
|
}
|
||||||
|
|
||||||
|
var mouseClicked = false;
|
||||||
|
resize_photo_box.addEventListener("mousemove", () => {
|
||||||
|
if (!mouseClicked) return;
|
||||||
|
|
||||||
|
offsets = calculateOffsets();
|
||||||
|
|
||||||
|
y_top = new_profile_image.style.setProperty("--x-offset", offsets.x + "px");
|
||||||
|
new_profile_image.style.setProperty("--y-offset", offsets.y + "px");
|
||||||
|
});
|
||||||
|
|
||||||
|
resize_photo_box.addEventListener("mousedown", () => {
|
||||||
|
x_start = currentX;
|
||||||
|
y_start = currentY;
|
||||||
|
mouseClicked = true;
|
||||||
|
set_cursor_state(CURSOR_GRABBING);
|
||||||
|
});
|
||||||
|
|
||||||
|
resize_photo_box.addEventListener("mouseup", () => {
|
||||||
|
offsets = calculateOffsets();
|
||||||
|
|
||||||
|
startXOffset = offsets.x;
|
||||||
|
startYOffset = offsets.y;
|
||||||
|
});
|
||||||
|
|
||||||
|
document.body.addEventListener("mouseup", () => {
|
||||||
|
mouseClicked = false;
|
||||||
|
set_cursor_state(CURSOR_NORMAL);
|
||||||
|
});
|
||||||
+64
-24
@@ -154,29 +154,69 @@
|
|||||||
color: var(--text-main);
|
color: var(--text-main);
|
||||||
}
|
}
|
||||||
|
|
||||||
#resize_photo_box {
|
#image_container {
|
||||||
background-color: black;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
opacity: 40%;
|
|
||||||
width: var(--img-width);
|
|
||||||
height: var(--img-height);
|
|
||||||
|
|
||||||
--percent: 0.5;
|
|
||||||
--smalled-dim: min(var(--img-width), var(--img-height));
|
|
||||||
|
|
||||||
--smaller-pixel: calc((0.5 - (var(--percent)) / 2) * var(--smalled-dim));
|
|
||||||
--larger-pixel: calc((0.5 + (var(--percent)) / 2) * var(--smalled-dim));
|
|
||||||
|
|
||||||
clip-path: polygon(
|
|
||||||
0% 0%,
|
|
||||||
0% 100%,
|
|
||||||
var(--smaller-pixel) 100%,
|
|
||||||
var(--smaller-pixel) var(--smaller-pixel),
|
|
||||||
var(--larger-pixel) var(--smaller-pixel),
|
|
||||||
var(--larger-pixel) var(--larger-pixel),
|
|
||||||
var(--smaller-pixel) var(--larger-pixel),
|
|
||||||
var(--smaller-pixel) 100%,
|
|
||||||
100% 100%,
|
|
||||||
100% 0%
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#darken_part {
|
||||||
|
/*background-color: black;*/
|
||||||
|
z-index: 3;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
#confirm_change {
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#new_profile_image {
|
||||||
|
z-index: 1;
|
||||||
|
transform: translateX(calc(-50% + var(--x-offset)))
|
||||||
|
translateY(calc(-50% + var(--y-offset)));
|
||||||
|
position: absolute;
|
||||||
|
left: calc(350px / 2);
|
||||||
|
top: calc(350px / 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#resize_photo_box {
|
||||||
|
background-color: rgba(0, 0, 0, 0);
|
||||||
|
width: 350px;
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
|
||||||
|
border-style: dashed;
|
||||||
|
border-color: black;
|
||||||
|
border-width: 5px;
|
||||||
|
z-index: 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
#resize_photo_box:hover {
|
||||||
|
background-color: rgba(0, 0, 0, 0);
|
||||||
|
width: 350px;
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
|
||||||
|
border-style: dashed;
|
||||||
|
border-color: black;
|
||||||
|
border-width: 5px;
|
||||||
|
z-index: 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
#resize_photo_box:hover {
|
||||||
|
cursor: grab;
|
||||||
|
}
|
||||||
|
|
||||||
|
#new_profile_image {
|
||||||
|
height: 350px;
|
||||||
|
position: absolute;
|
||||||
|
transform: translateX(5px) translateY(5px);
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#image_container {
|
||||||
|
height: 350px;
|
||||||
|
width: fit-content;
|
||||||
|
position: absolute;
|
||||||
|
background-color: red;
|
||||||
|
}*/
|
||||||
|
|||||||
Reference in New Issue
Block a user