Right side
离 supplies the sound lí directly, no drift.
离 alone means "to leave, to separate" — here purely phonetic, with no semantic role. Same phonetic in
篱 fence,
漓 drip,
璃 (which only really occurs in
玻璃). The whole compound
玻璃 transliterates from a Sanskrit term for crystal.